summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-10-28 12:18:35 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-10-28 12:31:01 +0200
commit077939626eeaa0c1364065414c18ab9b3a072281 (patch)
treea8eb105bf8e33f0f79f1d806d30bc2cefe2b1493 /libavformat/utils.c
parent940b8908b94404a65f9f55e33efb4ccc6c81383c (diff)
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>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 70dbfa191c..31572f3807 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3349,6 +3349,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;
@@ -3502,6 +3503,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