]> git.videolan.org Git - x264.git/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)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 2 Jun 2010 20:29:31 +0000 (13:29 -0700)
Regression in r1618.

encoder/ratecontrol.c

index d09de9850626689cdfe67129a9ba8da5216a1efd..9763122fd9ca57715d14f323ac39d50260cbfd67 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 )
             {