From: Jason Garrett-Glaser Date: Tue, 9 Nov 2010 05:03:01 +0000 (-0800) Subject: Disable overflow compensation in CRF mode X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=8d7c2d0d19c792c4de1310e2d1bf0cdf28095267;p=x264.git Disable overflow compensation in CRF mode Wasn't designed with CRF in mind, and acts really weird with CRF+VBV. --- diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index 290a9288..e9f62886 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -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 */