aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_demux.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-05-17 17:59:16 +0200
committerAnton Khirnov <anton@khirnov.net>2023-05-28 10:47:59 +0200
commitd43ae45de0432143a32e2710ba4a4cf13e12a772 (patch)
treeb1882d6ebea998b39a9656e2d7ff14ed61b07246 /fftools/ffmpeg_demux.c
parent6ee57fd2b6769725afa66d2f742d928db48ff19f (diff)
downloadffmpeg-d43ae45de0432143a32e2710ba4a4cf13e12a772.tar.gz
fftools/ffmpeg_demux: initialize nb_streams_warn
Fixes spurious new-stream warnings for unused streams after 9429624a76107020b5911f8307f366fed386b336
Diffstat (limited to 'fftools/ffmpeg_demux.c')
-rw-r--r--fftools/ffmpeg_demux.c1
1 files changed, 1 insertions, 0 deletions
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);