[FFmpeg-cvslog] fftools/ffmpeg_demux: initialize nb_streams_warn
Anton Khirnov
git at videolan.org
Sun May 28 11:52:35 EEST 2023
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed May 17 17:59:16 2023 +0200| [d43ae45de0432143a32e2710ba4a4cf13e12a772] | committer: Anton Khirnov
fftools/ffmpeg_demux: initialize nb_streams_warn
Fixes spurious new-stream warnings for unused streams after
9429624a76107020b5911f8307f366fed386b336
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d43ae45de0432143a32e2710ba4a4cf13e12a772
---
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);
More information about the ffmpeg-cvslog
mailing list