Commit ec2b6ee5 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/utils: dont wait for a first dts on demuxers which have AVFMT_NOTIMESTAMPS set

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b45a451d
......@@ -3204,6 +3204,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
!st->codec->extradata)
break;
if (st->first_dts == AV_NOPTS_VALUE &&
!(ic->iformat->flags & AVFMT_NOTIMESTAMPS) &&
(st->codec->codec_type == AVMEDIA_TYPE_VIDEO ||
st->codec->codec_type == AVMEDIA_TYPE_AUDIO))
break;
......
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