From patchwork Mon Dec 13 15:20:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 32432 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp5574897iog; Mon, 13 Dec 2021 07:24:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqtPhsNIdiILw1hm2cVeRRCKR8Pmwm0O8pnFQDjnEAW1eSoT8TBD4nfH5omDJn7s1wlHao X-Received: by 2002:a17:906:9482:: with SMTP id t2mr44247613ejx.288.1639409070819; Mon, 13 Dec 2021 07:24:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639409070; cv=none; d=google.com; s=arc-20160816; b=Dye3YBMVl70Jh29hNUogBmJQrTykP8tPESELxBMvNULIDw1Ifrt3SBZvKwQhvIttXj 16gdsQYoWKZOwxHZ53ubQFIEg6R4cQLUzknegbOOJ0/4IyICZSEGv9/L+o4L7UZtp6cs yFJCF6BwEkgD5Smq7Org6KJOorlxjhnxQGDlGoQWdZ5EEXHmkh38pAkLSVjnebVPoOV0 LUlVpTGpBgLouLu4ZlRThAAxMSXch4D6mgRxIKIZdieAKqzh1nbxBCHmpJexlUOTMFTJ M2UPM4PnZnxv4c5JF7tVYAvPA2sl9eYiFHOzkng5vBeH7hMEPGN8ISrOr8pxWu3keu+q USwg== 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=HnmNI+pJVI4yqMzmKgbrISX4cfKWqdIhCc1yYAWhpsY=; b=xMmhX1LgNWiY8c1NrgLn0vzFCeffKepwJ1iipdTwWUXDdqzf7616BgA4x7FTFu1vtQ 33+WKtWEi18ERZVeOdsagXXQ7OxcyHE5AVzsl29PIoWLDJPX6Pm+QeBNaK24UwAYbJa6 lEthC0HERVxEcH44NI/GhWNDYoiU8Uf3fkDMIydW56DNSmx7QlkI2+2GK50pkNw8CBPI 2WV8Q0e3UUOjIyROd9ME/G/7nDKnLgHwbC+Snol3hY47JiJhllfPM030yBza4hjF73hx 4KctqgfOba9kPvR/pf30Rnoz9IwI1+oQPA7L723hTZ4cG8nbzWADvvDluHm2uwuOF740 I2mw== 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 cw16si21486669ejc.503.2021.12.13.07.24.30; Mon, 13 Dec 2021 07:24:30 -0800 (PST) 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 55F1768AFBA; Mon, 13 Dec 2021 17:22:27 +0200 (EET) 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 95C9E68AFB4 for ; Mon, 13 Dec 2021 17:22:19 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 1D34724017C for ; Mon, 13 Dec 2021 16:22:14 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id js3iSpp4H5X0 for ; Mon, 13 Dec 2021 16:22:13 +0100 (CET) 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 EE7492405F0 for ; Mon, 13 Dec 2021 16:22:07 +0100 (CET) Received: by libav.khirnov.net (Postfix, from userid 1000) id 4E4403A0BC7; Mon, 13 Dec 2021 16:22:07 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Mon, 13 Dec 2021 16:20:35 +0100 Message-Id: <20211213152042.5900-17-anton@khirnov.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211213152042.5900-1-anton@khirnov.net> References: <20211213152042.5900-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 17/24] ffmpeg: do not log to the muxer context 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: 8WzdRH1ie27M All other logging goes to NULL context. --- fftools/ffmpeg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index d69e4119ef..afd442ff4e 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2954,7 +2954,6 @@ static void init_encoder_time_base(OutputStream *ost, AVRational default_time_ba { InputStream *ist = get_input_stream(ost); AVCodecContext *enc_ctx = ost->enc_ctx; - AVFormatContext *oc; if (ost->enc_timebase.num > 0) { enc_ctx->time_base = ost->enc_timebase; @@ -2967,8 +2966,7 @@ static void init_encoder_time_base(OutputStream *ost, AVRational default_time_ba return; } - oc = output_files[ost->file_index]->ctx; - av_log(oc, AV_LOG_WARNING, "Input stream data not available, using default time base\n"); + av_log(NULL, AV_LOG_WARNING, "Input stream data not available, using default time base\n"); } enc_ctx->time_base = default_time_base;