]> git.sesse.net Git - vlc/commitdiff
avcodec: don't play rc-max/min for vp8, doesn't seem to work as it worked before
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 13 Jun 2010 13:35:47 +0000 (16:35 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 13 Jun 2010 20:35:28 +0000 (23:35 +0300)
modules/codec/avcodec/encoder.c

index 092dfee32f41fbf811fed80b45efa154aa3e01d3..94e098bb10391a6b76b0bb6735798a5db2a3c840 100644 (file)
@@ -605,6 +605,10 @@ int OpenEncoder( vlc_object_t *p_this )
         /* default to 120 frames between keyframe */
         if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "keyint" ) )
            p_context->gop_size = 120;
+        /* Don't set rc-values atm, they were from time before
+           libvpx was officially in ffmpeg */
+        //p_context->rc_max_rate = 24 * 1000 * 1000; //24M
+        //p_context->rc_min_rate = 40 * 1000; // 40k
         /* seems that ffmpeg presets have 720p as divider for buffers */
         if( p_enc->fmt_out.video.i_height >= 720 )
         {
@@ -621,17 +625,12 @@ int OpenEncoder( vlc_object_t *p_this )
               p_context->mb_lmax = p_context->lmax = 42 * FF_QP2LAMBDA;
            }
 
-           p_context->rc_max_rate = 24 * 1000 * 1000; //24M
-           p_context->rc_min_rate = 100 * 1000; // 100k
         } else {
            if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "qmin" ) )
            {
               p_context->mb_qmin = p_context->qmin = 1;
               p_context->mb_lmin = p_context->lmin = FF_QP2LAMBDA;
            }
-
-           p_context->rc_max_rate = 1.5 * 1000 * 1000; //1.5M
-           p_context->rc_min_rate = 40 * 1000; // 40k
         }