rc: fix 10l typo in rc_max_available_vbv_use calculation
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 20 Nov 2012 19:47:38 +0000 (20:47 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 20 Nov 2012 20:11:05 +0000 (21:11 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ratecontrol.c

index 8f8647c..d1a9a58 100644 (file)
@@ -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;
     }