[FFmpeg-cvslog] rc: fix 10l typo in rc_max_available_vbv_use calculation

Michael Niedermayer git at videolan.org
Tue Nov 20 21:16:51 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 20 20:47:38 2012 +0100| [391f323615e84bca783f4fa59a02b828fd1632a8] | committer: Michael Niedermayer

rc: fix 10l typo in  rc_max_available_vbv_use calculation

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=391f323615e84bca783f4fa59a02b828fd1632a8
---

 libavcodec/ratecontrol.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index 8f8647c..d1a9a58 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;
     }



More information about the ffmpeg-cvslog mailing list