From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id A901D421AF for ; Thu, 16 Dec 2021 19:48:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1036368AF50; Thu, 16 Dec 2021 21:48:30 +0200 (EET) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9C67368A9A8 for ; Thu, 16 Dec 2021 21:48:23 +0200 (EET) Received: from localhost (213-47-68-29.cable.dynamic.surfer.at [213.47.68.29]) (Authenticated sender: michael@niedermayer.cc) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id B70881C0006 for ; Thu, 16 Dec 2021 19:48:22 +0000 (UTC) Date: Thu, 16 Dec 2021 20:48:18 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20211216194818.GZ2829255@pb2> References: <20211213152042.5900-1-anton@khirnov.net> <20211213152042.5900-17-anton@khirnov.net> MIME-Version: 1.0 In-Reply-To: <20211213152042.5900-17-anton@khirnov.net> Subject: Re: [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 Content-Type: multipart/mixed; boundary="===============7925832108784359655==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============7925832108784359655== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/KhOwlqIK8WmqMZp" Content-Disposition: inline --/KhOwlqIK8WmqMZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 13, 2021 at 04:20:35PM +0100, Anton Khirnov wrote: > All other logging goes to NULL context. > --- > fftools/ffmpeg.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) >=20 > 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 *os= t, AVRational default_time_ba > { > InputStream *ist =3D get_input_stream(ost); > AVCodecContext *enc_ctx =3D ost->enc_ctx; > - AVFormatContext *oc; > =20 > if (ost->enc_timebase.num > 0) { > enc_ctx->time_base =3D ost->enc_timebase; > @@ -2967,8 +2966,7 @@ static void init_encoder_time_base(OutputStream *os= t, AVRational default_time_ba > return; > } > =20 > - oc =3D output_files[ost->file_index]->ctx; > - av_log(oc, AV_LOG_WARNING, "Input stream data not available, usi= ng default time base\n"); > + av_log(NULL, AV_LOG_WARNING, "Input stream data not available, u= sing default time base\n"); > } If this no longer shows the muxer then some information should be added so the user knows to which part the warning belongs on a complex transcode thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB He who knows, does not speak. He who speaks, does not know. -- Lao Tsu --/KhOwlqIK8WmqMZp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCYbuYAgAKCRBhHseHBAsP q6mSAJ4wxADAp3UOR0iJH8gQNZOVqJNH/gCfdeqCQOBBgZmK3GNdm4MqWO4E1dw= =nej2 -----END PGP SIGNATURE----- --/KhOwlqIK8WmqMZp-- --===============7925832108784359655== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". --===============7925832108784359655==--