aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-15 02:17:39 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-15 03:19:18 +0100
commit4a6fa7963bd2a2b2e6150d8247a48ab879e06a9d (patch)
tree18084944c00de04bc46a8b390ec84082b009124c
parent7ac3ccc5f238960cdf9e9c525c638d9f724031aa (diff)
downloadffmpeg-4a6fa7963bd2a2b2e6150d8247a48ab879e06a9d.tar.gz
lavf: dont try to find fps for attached pictures
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 10d2449d28..009aeb031a 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