aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorAlex Converse <aconverse@google.com>2011-05-09 14:34:23 -0700
committerAlex Converse <alex.converse@gmail.com>2011-05-25 12:34:46 -0700
commit30315a8d9c9bea98d54260956db58b6df56f9347 (patch)
tree0d2a29d48fb91454ce0849e369d325ea9fed9829 /libavformat/utils.c
parent80068da3a0bafc7e24ce6b1f91cefec7d793b4d2 (diff)
downloadffmpeg-30315a8d9c9bea98d54260956db58b6df56f9347.tar.gz
avformat: Add fpsprobesize as an AVOption.
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 8cdd8b3805..89ab1086fe 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2229,6 +2229,8 @@ int av_find_stream_info(AVFormatContext *ic)
the correct fps */
if (av_q2d(st->time_base) > 0.0005)
fps_analyze_framecount *= 2;
+ if (ic->fps_probe_size >= 0)
+ fps_analyze_framecount = ic->fps_probe_size;
/* 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