Message ID | 20220404113037.13070-29-anton@khirnov.net |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c05:b0:7a:e998:b410 with SMTP id bw5csp1913679pzb; Mon, 4 Apr 2022 04:36:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV1rhOGfHzfb3XoN1zvFraFQaShEGYMWgWM9vbAW3mWcsRANbUKg3+x8+8k+XYSX0r/rTV X-Received: by 2002:a17:907:6284:b0:6e0:f895:15a with SMTP id nd4-20020a170907628400b006e0f895015amr10463299ejc.713.1649072208987; Mon, 04 Apr 2022 04:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649072208; cv=none; d=google.com; s=arc-20160816; b=wUYV4bl7GMOKAC2bCgQyNvhJ9ATzD44iU54eJ4iNwju67bs22CLpa19QrFl4eNfFb7 +bzLcux7zl2jukl47M3iMTQYNzBKp1l422RO4ZrOotryBr4TgiCjZQKgcCEN3SzV64Q4 wS/Y9PPct/3nK2PRXyXNXBc9bl7eDPh+cOnJioiSLKoLBfvuZphg6+xZhogS19T4iP+n wkdYhkKds3lHp3zNZDGygGNIQZ4j/V5s9ve1sLcq4wNP6qVinwxW/b+T6QDUdfCGlc8u M+I9qNzlTzSa2YY1g4BTlTghS3k6MdWgbm4Oj1yL14ryB5m1gtPDtdILoFoNkB81HDjo F7ag== 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=Q5JmxtMpLSKbHPbFf8PZ/JpDSDVOqLar8sUt2AX5vJs=; b=lyVFULLkwmiSCSP7v0MspcXo/ZnkxSvfoTnipaVEPFsLGj24yFmVVEQvlX3UZwA9uj WwzRROk+Xu+P9FJOwFA+cTiTNwF0VbFbaZxgXuNZYoZ3ZDIRCk8vJYGGN5fTXZMChFsy RmLLv37RfDxCG5DaDNe8iINHcazcSYN7MQxUWZnnfxQJ+JbEFm6WAjKu/79UuVYkbhP6 rF8a3Pp0ewchEYiSi6Y4tqEecL0yDb1GgOnsbrg7EFzItgWKLAmsgo9Ppw0iV5NsDKM0 osPFKA+sChqjtkveslYciFW46HeyMMF21vLu0Zc6IGnbmb8pzOo9PvHTiW5GlxO52bqD DXPA== 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: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id u7-20020a50d947000000b0041c7cde74fasi5682683edj.308.2022.04.04.04.36.48; Mon, 04 Apr 2022 04:36:48 -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 4617968B32B; Mon, 4 Apr 2022 14:32:48 +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 9C41368B250 for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Apr 2022 14:32:27 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 37DC0240179 for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Apr 2022 13:32:27 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id K7ziSx_5TIS7 for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Apr 2022 13:32:24 +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 58773240687 for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Apr 2022 13:32:15 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 0A3E63A0CFE; Mon, 4 Apr 2022 13:32:12 +0200 (CEST) From: Anton Khirnov <anton@khirnov.net> To: ffmpeg-devel@ffmpeg.org Date: Mon, 4 Apr 2022 13:30:16 +0200 Message-Id: <20220404113037.13070-29-anton@khirnov.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220404113037.13070-1-anton@khirnov.net> References: <20220404113037.13070-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 28/49] fftools/ffmpeg_mux: merge variable declaration and initialization X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: glb+y1XD/XYs |
Series |
[FFmpeg-devel,01/49] fftools/ffmpeg: drop an obsolete hack
|
expand
|
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c index 8e0e278e4f..b7140fca5e 100644 --- a/fftools/ffmpeg_mux.c +++ b/fftools/ffmpeg_mux.c @@ -58,7 +58,7 @@ static int want_sdp = 1; static void do_video_stats(OutputStream *ost, const AVPacket *pkt) { - AVCodecContext *enc; + AVCodecContext *enc = ost->enc_ctx; int frame_number; double ti1, bitrate, avg_bitrate; @@ -71,7 +71,6 @@ static void do_video_stats(OutputStream *ost, const AVPacket *pkt) } } - enc = ost->enc_ctx; frame_number = ost->packets_written - 1; if (vstats_version <= 1) { fprintf(vstats_file, "frame= %5d q= %2.1f ", frame_number,