From 2e81ce15c161f94053707852c027c123c6812cdf Mon Sep 17 00:00:00 2001 From: Yusuke Nakamura Date: Wed, 2 Jun 2010 22:27:57 +0900 Subject: [PATCH] Fix no-mbtree + aq-mode=0 Regression in r1618. --- encoder/ratecontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index d09de985..9763122f 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -254,7 +254,7 @@ void x264_adaptive_quant_frame( x264_t *h, x264_frame_t *frame, float *quant_off if( h->param.rc.i_aq_mode == X264_AQ_NONE || h->param.rc.f_aq_strength == 0 ) { /* Need to init it anyways for MB tree */ - if( h->param.rc.f_aq_strength == 0 ) + if( h->param.rc.i_aq_mode && h->param.rc.f_aq_strength == 0 ) { if( quant_offsets ) { -- 2.47.3