]> git.sesse.net Git - x264/commitdiff
Fix no-mbtree + aq-mode=0
authorYusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Wed, 2 Jun 2010 13:27:57 +0000 (22:27 +0900)
committerFiona Glaser <fiona@x264.com>
Wed, 2 Jun 2010 20:29:31 +0000 (13:29 -0700)
Regression in r1618.

encoder/ratecontrol.c

index 7f1c823022fbd361d8becbbe59a33880fbac293f..3a631f532c1bf15fecd4f9ff30665e0880c507fd 100644 (file)
@@ -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 )
             {