From patchwork Wed Apr 17 11:31:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyan Doshi X-Patchwork-Id: 48106 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:ce4e:b0:1a9:af23:56c1 with SMTP id id14csp934403pzb; Wed, 17 Apr 2024 04:31:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUoEPAAbvqVy7vwH335WrproSVXSuCmoKkfOkN0mF305KkSJf4J2F1fIRVhkCQ4ZeXufd/EtxljSift6mgyaLURISxiDc46e3UPDQ== X-Google-Smtp-Source: AGHT+IGFjMhQxrC4eqp8lku/7NdHu28Ewre6hzs8i+G40+1x28dpt998lnfOzBpaHh2jAqsZyE/O X-Received: by 2002:a17:906:d938:b0:a55:a04:7252 with SMTP id rn24-20020a170906d93800b00a550a047252mr4210406ejb.7.1713353496303; Wed, 17 Apr 2024 04:31:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713353496; cv=none; d=google.com; s=arc-20160816; b=zhlK/VUJsx4X8891g+1cg1QVSTCaAS30GyWt764Et3/MwOtNo5hX6hd5Vx5eIyxXh4 jEyrIT5ay/nHx3XmNI331Hxl18GHQpHmGlSxNKc+R1jYuzR7F3FSQkW7c9TRezixkw18 uoOhNMokfmPbCLQGPntqAFZ+O9Kx6w9x8etpk492qxqFXu3kLn32bSgUI0Z8H5VPXmqG R5jCGzTJOawKxg0P2LQwCn4kAvxgaUt/lhHDvZ+bvuHcCOZH13FRNN8YlTdOCGSIvprn fCxo1i1IQYuV5PuyqXacs1xgkCA6IJdOr+bVCeVuaNb6BdNSwkcOm+oXdX9lsV1ApGm7 wiBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=kck4/OOOcyYwjyWYsnpHRxXwErX3VJxtUgGlC+anI8k=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=GAe2L+ReFnRx/eyUEXVjfLF9ft88tk3Qcop2JayiipQqt+i/GYI43y58rAuS/M67UQ Vx3cG0zoiRpMKsgwZRXX7rNhTaMu4p/S5dAuOnZNZ5G3OtRAI37K8qYGB3N29jLvBFz0 NqiEaFVLATScVh+cX7Qna/e3UmQQbXuZhr9aIBhy/L1tBPJSZRSfZQ/fufw89mFg011T Qw61K5BlaQtFkrXAMAZW0Lrp3PIkJndDEd6WQociKz8fa3JAXkXFl0IHVPuY03n17zum vRlNyFF0j3FKDBxP0fMd/rl0NfBXYHXMO4OixhuwfzaFvWgwR+I8fSrsvSPk85L24SRM KYtw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id gs11-20020a170906f18b00b00a555fafb9f6si379909ejb.428.2024.04.17.04.31.35; Wed, 17 Apr 2024 04:31:36 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B42FE68D242; Wed, 17 Apr 2024 14:31:31 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CEB1268CEEE for ; Wed, 17 Apr 2024 14:31:24 +0300 (EEST) Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4VKJdP5Tw8z9sxG for ; Wed, 17 Apr 2024 13:31:21 +0200 (CEST) From: Gyan Doshi To: ffmpeg-devel@ffmpeg.org Date: Wed, 17 Apr 2024 17:01:06 +0530 Message-ID: <20240417113106.1754-1-ffmpeg@gyani.pro> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avformat/ivfenc: remove unused var X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: pxCOaMO8Winj sum_delta_pts is unused since 3b358f151d --- libavformat/ivfenc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/ivfenc.c b/libavformat/ivfenc.c index 09782eecd6..9feaea3516 100644 --- a/libavformat/ivfenc.c +++ b/libavformat/ivfenc.c @@ -24,7 +24,7 @@ typedef struct IVFEncContext { unsigned frame_cnt; - uint64_t last_pts, sum_delta_pts, last_pkt_duration; + uint64_t last_pts, last_pkt_duration; } IVFEncContext; static int ivf_init(AVFormatContext *s) @@ -80,8 +80,6 @@ static int ivf_write_packet(AVFormatContext *s, AVPacket *pkt) avio_wl32(pb, pkt->size); avio_wl64(pb, pkt->pts); avio_write(pb, pkt->data, pkt->size); - if (ctx->frame_cnt) - ctx->sum_delta_pts += pkt->pts - ctx->last_pts; ctx->last_pkt_duration = pkt->duration; ctx->frame_cnt++; ctx->last_pts = pkt->pts;