mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 11:30:08 +01:00
avformat/flvdec: Fix regression loosing streams
Fixes: unknown_video.flv
Found-by: Thierry Foucu <tfoucu@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 077939626e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -3294,6 +3294,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
||||
int64_t max_subtitle_analyze_duration;
|
||||
int64_t probesize = ic->probesize;
|
||||
int eof_reached = 0;
|
||||
int64_t *missing_streams = av_opt_ptr(ic->iformat->priv_class, ic->priv_data, "missing_streams");
|
||||
|
||||
flush_codecs = probesize > 0;
|
||||
|
||||
@@ -3447,6 +3448,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
break;
|
||||
}
|
||||
analyzed_all_streams = 0;
|
||||
if (!missing_streams || !*missing_streams)
|
||||
if (i == ic->nb_streams) {
|
||||
analyzed_all_streams = 1;
|
||||
/* NOTE: If the format has no header, then we need to read some
|
||||
|
||||
Reference in New Issue
Block a user