diff mbox series

[FFmpeg-devel,07/15] fftools/ffmpeg_demux: initialize nb_streams_warn

Message ID 20230523135842.20388-7-anton@khirnov.net
State Accepted
Commit d43ae45de0432143a32e2710ba4a4cf13e12a772
Headers show
Series [FFmpeg-devel,01/15] fftools/ffmpeg_hw: move hw_device_setup_for_decode() to ffmpeg_dec | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov May 23, 2023, 1:58 p.m. UTC
Fixes spurious new-stream warnings for unused streams after
9429624a76107020b5911f8307f366fed386b336
---
 fftools/ffmpeg_demux.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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);