[FFmpeg-devel] [PATCH 08/20] fftools/ffmpeg_demux: do not log to the demuxer context
Anton Khirnov
anton at khirnov.net
Tue Oct 18 15:36:49 EEST 2022
Only the demuxer itself is supposed to do that.
---
fftools/ffmpeg_demux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index fe1b3bd8b7..e5e7cd1a54 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -81,7 +81,7 @@ static void report_new_stream(InputFile *file, const AVPacket *pkt)
if (pkt->stream_index < file->nb_streams_warn)
return;
- av_log(file->ctx, AV_LOG_WARNING,
+ av_log(NULL, AV_LOG_WARNING,
"New %s stream %d:%d at pos:%"PRId64" and DTS:%ss\n",
av_get_media_type_string(st->codecpar->codec_type),
file->index, pkt->stream_index,
--
2.35.1
More information about the ffmpeg-devel
mailing list