aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorJoakim Plate <elupus@ecce.se>2011-09-11 00:33:20 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-11 00:33:20 +0200
commit6796b82407ed1ba749bbe0d2b662b7feb349a735 (patch)
tree9e366966792ebff3909442463522eb87d31fb727 /libavformat/utils.c
parent2298818f96cf4664e74b9b7486ca7eac88e3188a (diff)
downloadffmpeg-6796b82407ed1ba749bbe0d2b662b7feb349a735.tar.gz
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: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index d08faeac47..dbe1a6359e 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2359,7 +2359,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
break;
if(st->parser && st->parser->parser->split && !st->codec->extradata)
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;
}
if (i == ic->nb_streams) {