mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avformat/utils: dont wait for a first dts on demuxers which have AVFMT_NOTIMESTAMPS set
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b45a451dbe
commit
ec2b6ee59a
@ -3204,6 +3204,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
|||||||
!st->codec->extradata)
|
!st->codec->extradata)
|
||||||
break;
|
break;
|
||||||
if (st->first_dts == AV_NOPTS_VALUE &&
|
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_VIDEO ||
|
||||||
st->codec->codec_type == AVMEDIA_TYPE_AUDIO))
|
st->codec->codec_type == AVMEDIA_TYPE_AUDIO))
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user