[FFmpeg-cvslog] avformat/utils: dont wait for a first dts on demuxers which have AVFMT_NOTIMESTAMPS set

Michael Niedermayer git at videolan.org
Tue Jun 10 14:50:18 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 10 14:22:13 2014 +0200| [ec2b6ee59afa22dbfcfedbc56d24873dbb8894e5] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ec2b6ee59afa22dbfcfedbc56d24873dbb8894e5
---

 libavformat/utils.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 5c646c6..ae2e233 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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;



More information about the ffmpeg-cvslog mailing list