]> git.videolan.org Git - x264.git/commitdiff
Disable overflow compensation in CRF mode
authorJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 9 Nov 2010 05:03:01 +0000 (21:03 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 9 Nov 2010 06:31:46 +0000 (22:31 -0800)
Wasn't designed with CRF in mind, and acts really weird with CRF+VBV.

encoder/ratecontrol.c

index 290a9288185cdded45445e264f84e19f9e4c913c..e9f6288606a3e9c3ba02cbb6f9ce50df847408b8 100644 (file)
@@ -2206,7 +2206,7 @@ static float rate_estimate_qscale( x264_t *h )
                 q = qp2qscale( rcc->accum_p_qp / rcc->accum_p_norm );
                 q /= fabs( h->param.rc.f_ip_factor );
             }
-            else if( h->i_frame > 0 )
+            else if( h->param.rc.i_rc_method != X264_RC_CRF && h->i_frame > 0 )
             {
                 /* Asymmetric clipping, because symmetric would prevent
                  * overflow control in areas of rapidly oscillating complexity */