From 8d7c2d0d19c792c4de1310e2d1bf0cdf28095267 Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Mon, 8 Nov 2010 21:03:01 -0800 Subject: [PATCH] Disable overflow compensation in CRF mode Wasn't designed with CRF in mind, and acts really weird with CRF+VBV. --- encoder/ratecontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.3