diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-20 20:47:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-20 21:11:05 +0100 |
commit | 391f323615e84bca783f4fa59a02b828fd1632a8 (patch) | |
tree | d5db8422db274757cbebb94ef7552724f29534d2 /libavcodec/ratecontrol.c | |
parent | 50a9530bc40588391c1ff070b15ace1c9b0d2763 (diff) | |
download | ffmpeg-391f323615e84bca783f4fa59a02b828fd1632a8.tar.gz |
rc: fix 10l typo in rc_max_available_vbv_use calculation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ratecontrol.c')
-rw-r--r-- | libavcodec/ratecontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c index 8f8647c058..d1a9a582fd 100644 --- a/libavcodec/ratecontrol.c +++ b/libavcodec/ratecontrol.c @@ -112,7 +112,7 @@ int ff_rate_control_init(MpegEncContext *s) if (!s->avctx->rc_max_available_vbv_use && s->avctx->rc_buffer_size) { if (s->avctx->rc_max_rate) { - s->avctx->rc_max_available_vbv_use = av_clipf(s->avctx->rc_max_rate/(s->avctx->rc_buffer_size*get_fps(s->avctx)), 1.0/0.3, 1.0); + s->avctx->rc_max_available_vbv_use = av_clipf(s->avctx->rc_max_rate/(s->avctx->rc_buffer_size*get_fps(s->avctx)), 1.0/3, 1.0); } else s->avctx->rc_max_available_vbv_use = 1.0; } |