Commit 6796b824 authored by Joakim Plate's avatar Joakim Plate Committed by Michael Niedermayer

libavformat/utils: Only require first packet to be known for all audio and video streams

It can take a long time before subtitles or data streams show up,
so we shouldn't wait for those before assuming we have all info
for streams.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2298818f
...@@ -2359,7 +2359,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) ...@@ -2359,7 +2359,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
break; break;
if(st->parser && st->parser->parser->split && !st->codec->extradata) if(st->parser && st->parser->parser->split && !st->codec->extradata)
break; break;
if(st->first_dts == AV_NOPTS_VALUE) if(st->first_dts == AV_NOPTS_VALUE && (st->codec->codec_type == AVMEDIA_TYPE_VIDEO || st->codec->codec_type == AVMEDIA_TYPE_AUDIO))
break; break;
} }
if (i == ic->nb_streams) { if (i == ic->nb_streams) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment