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
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".