diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-15 23:41:14 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-16 00:06:20 +0100 |
commit | 0ecde4557068de0d132b073ac6b405131c54f140 (patch) | |
tree | e855b06357d7a4e6956b9845df0d5aeefb9adf2f | |
parent | ca43c6e1f53af217f6192332570d006e1c1f7079 (diff) | |
download | ffmpeg-0ecde4557068de0d132b073ac6b405131c54f140.tar.gz |
avformat/utils: Do not init parser if probing is unfinished
Fixes assertion failure
Fixes: 136f8b8d47af7892306625e597dee655/signal_sigabrt_7ffff6ae7cc9_8941_ab11bea57c84796418f481f873dc31ba.dvr_ms
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1ef336e912a7a3a13a9933825a56c421f891e44b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index caa15abbae..5729b0bde6 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3068,7 +3068,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) st->codec->time_base = st->time_base; } // only for the split stuff - if (!st->parser && !(ic->flags & AVFMT_FLAG_NOPARSE)) { + if (!st->parser && !(ic->flags & AVFMT_FLAG_NOPARSE) && st->request_probe <= 0) { st->parser = av_parser_init(st->codec->codec_id); if (st->parser) { if (st->need_parsing == AVSTREAM_PARSE_HEADERS) { |