[FFmpeg-devel] [PATCH 17/24] ffmpeg: do not log to the muxer context
Anton Khirnov
anton at khirnov.net
Mon Dec 13 17:20:35 EET 2021
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;
--
2.33.0
More information about the ffmpeg-devel
mailing list