fftools/ffmpeg_demux: initialize nb_streams_warn

Fixes spurious new-stream warnings for unused streams after
9429624a76
This commit is contained in:
Anton Khirnov 2023-05-17 17:59:16 +02:00
parent 6ee57fd2b6
commit d43ae45de0
1 changed files with 1 additions and 0 deletions

View File

@ -1543,6 +1543,7 @@ int ifile_open(const OptionsContext *o, const char *filename)
d->loop = o->loop; d->loop = o->loop;
d->duration = 0; d->duration = 0;
d->time_base = (AVRational){ 1, 1 }; d->time_base = (AVRational){ 1, 1 };
d->nb_streams_warn = ic->nb_streams;
f->format_nots = !!(ic->iformat->flags & AVFMT_NOTIMESTAMPS); f->format_nots = !!(ic->iformat->flags & AVFMT_NOTIMESTAMPS);