From: Yusuke Nakamura Date: Wed, 2 Jun 2010 13:27:57 +0000 (+0900) Subject: Fix no-mbtree + aq-mode=0 X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=2e81ce15c161f94053707852c027c123c6812cdf;p=x264.git Fix no-mbtree + aq-mode=0 Regression in r1618. --- 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 ) {