From patchwork Wed Aug 3 13:58:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 37106 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:1649:b0:8b:613a:194d with SMTP id no9csp458241pzb; Wed, 3 Aug 2022 07:00:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vMinRF/CbwKP7C4G9CDGk3pOF5mQaxN4QTbPecYaaa11xv3DzA6XWcBHSJO+U+eOVF1L63 X-Received: by 2002:a05:6402:5413:b0:43c:67c0:d2db with SMTP id ev19-20020a056402541300b0043c67c0d2dbmr26492979edb.267.1659535230986; Wed, 03 Aug 2022 07:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659535230; cv=none; d=google.com; s=arc-20160816; b=OAZTckdlYE2XZlt4TG/3oWO58tzOlPCPavMuSjuGV6OxoU+nWynCL761pjR7nWhbaF hSVpzXZ9BmEzRKk0by4x7NH3x7yeoQ0fpBrinpch4sHNR7nxXKwNddmjpr4vnNC13OCH opHWkkJwocsUp4q6oiwgvmzBub0bkxe2a6zxruQmeAlj69M7kganJyx9eoekJ+6uuHuG cOGv62iTcTzUYPxjEKCGS1H8V73c0FYkubv8swQWNZGdpg6qz9ID+5JXn6aDtTjXtWm5 9YmbPyYQhOzy0qAstRKOIBry3+Zg2CSXNhKe/K2n8N8PHlLg00HHEBSmNcq1ZGPSjkQp iCDg== 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:references:in-reply-to:message-id :date:to:from:delivered-to; bh=eozwVG6tnwJhHUPdSscOnUaCp27vU1eevGVOzYuHCSk=; b=k6FtVz0n+Lupmn1dDhtP1JIkTnKIWlK7uJOsB+LtiPwI9mrpUorSGL3le4WoqzyGUb mRv2bCp0HY3KOkW9v6jk7RyPOmPxu9FHacEdeWjF2rM9ffsHIrOhEvVITswXX5k9AX0L JKEjyA5ECuMQxA0YSFqUKTSBcp5svtR/o5V05u3uBTRPNHwSEDm8+yzBY/yr18AvOpIU XJXWF20mfqQeISxjdr0YLhQqFWU/smOM3ptjjyd22Tk6HbNWxs3iPbwTnXtDLQ5XEfNz cR4qGCEd9FZV4Ssl/qyT3WURkK0oESLGGtLK0nZSDbBVjRmkNhkrXLqdmsCx9sZxDhp6 r5fg== 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 wg10-20020a17090705ca00b0072f2e1425a3si7694027ejb.774.2022.08.03.07.00.30; Wed, 03 Aug 2022 07:00:30 -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 85CBC68B8B3; Wed, 3 Aug 2022 16:59:11 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 58CC668B88B for ; Wed, 3 Aug 2022 16:59:01 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 44607240507 for ; Wed, 3 Aug 2022 15:58:58 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id EedOK3HT9ESR for ; Wed, 3 Aug 2022 15:58:57 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id DC5F6240511 for ; Wed, 3 Aug 2022 15:58:54 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 1ADBD3A04A6; Wed, 3 Aug 2022 15:58:52 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 3 Aug 2022 15:58:31 +0200 Message-Id: <20220803135844.16662-12-anton@khirnov.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220803135844.16662-1-anton@khirnov.net> References: <20220803135844.16662-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 12/25] fftools/ffmpeg: drop a superfluous stack variable 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: aoqwBTCM0KOs --- fftools/ffmpeg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 47f9a6137f..f12364fe0a 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3904,16 +3904,14 @@ static int process_input(int file_index) return ret; } if (ret < 0 && ifile->loop) { - AVCodecContext *avctx; for (i = 0; i < ifile->nb_streams; i++) { ist = input_streams[ifile->ist_index + i]; - avctx = ist->dec_ctx; if (ist->processing_needed) { ret = process_input_packet(ist, NULL, 1); if (ret>0) return 0; if (ist->decoding_needed) - avcodec_flush_buffers(avctx); + avcodec_flush_buffers(ist->dec_ctx); } } free_input_thread(file_index);