[FFmpeg-devel] [PATCH 07/15] fftools/ffmpeg_demux: initialize nb_streams_warn
Anton Khirnov
anton at khirnov.net
Tue May 23 16:58:34 EEST 2023
Fixes spurious new-stream warnings for unused streams after
9429624a76107020b5911f8307f366fed386b336
---
fftools/ffmpeg_demux.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index ed8d5d165a..bd267aa0ce 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -1543,6 +1543,7 @@ int ifile_open(const OptionsContext *o, const char *filename)
d->loop = o->loop;
d->duration = 0;
d->time_base = (AVRational){ 1, 1 };
+ d->nb_streams_warn = ic->nb_streams;
f->format_nots = !!(ic->iformat->flags & AVFMT_NOTIMESTAMPS);
--
2.39.2
More information about the ffmpeg-devel
mailing list