From 4a6fa7963bd2a2b2e6150d8247a48ab879e06a9d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 15 Feb 2013 02:17:39 +0100 Subject: lavf: dont try to find fps for attached pictures Signed-off-by: Michael Niedermayer --- libavformat/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 10d2449..009aeb0 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2769,6 +2769,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) fps_analyze_framecount *= 2; if (ic->fps_probe_size >= 0) fps_analyze_framecount = ic->fps_probe_size; + if (st->disposition & AV_DISPOSITION_ATTACHED_PIC) + fps_analyze_framecount = 0; /* variable fps and no guess at the real fps */ if( tb_unreliable(st->codec) && !(st->r_frame_rate.num && st->avg_frame_rate.num) && st->info->duration_count < fps_analyze_framecount -- cgit v1.1