diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-03-19 22:11:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-03-19 22:58:34 +0100 |
commit | 0ffa9e6ebae3be30ac84aed489ad723567a68f3d (patch) | |
tree | 8e6f2773c0e86c220e010e51906ebd659ecb5e10 /libavformat | |
parent | 92dfeb5c31009b93a1b6cabe596c0548f54e5fc3 (diff) | |
download | ffmpeg-0ffa9e6ebae3be30ac84aed489ad723567a68f3d.tar.gz |
avformat/utils: Do not wait for more than 1 frame on attachments
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 2936ed5576..5cff3a78e8 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3313,7 +3313,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) break; if (st->first_dts == AV_NOPTS_VALUE && !(ic->iformat->flags & AVFMT_NOTIMESTAMPS) && - st->codec_info_nb_frames < ic->max_ts_probe && + st->codec_info_nb_frames < ((st->disposition & AV_DISPOSITION_ATTACHED_PIC) ? 1 : ic->max_ts_probe) && (st->codec->codec_type == AVMEDIA_TYPE_VIDEO || st->codec->codec_type == AVMEDIA_TYPE_AUDIO)) break; |