]> granicus.if.org Git - libx264/commitdiff
CQP is incompatible with AQ
authorLoren Merritt <pengvado@akuvian.org>
Mon, 2 Jun 2008 14:57:59 +0000 (08:57 -0600)
committerLoren Merritt <pengvado@akuvian.org>
Tue, 3 Jun 2008 22:46:40 +0000 (16:46 -0600)
encoder/encoder.c

index dd74bdc4ccba3a3ed2a1053a2ab8a05f184ac95f..518e960d10467af5bc18716abbb87264763bcc9d 100644 (file)
@@ -373,7 +373,6 @@ static int x264_validate_parameters( x264_t *h )
         h->param.analyse.b_fast_pskip = 0;
         h->param.analyse.i_noise_reduction = 0;
         h->param.analyse.i_subpel_refine = x264_clip3( h->param.analyse.i_subpel_refine, 1, 6 );
-        h->param.rc.i_aq_mode = 0;
     }
     if( h->param.rc.i_rc_method == X264_RC_CQP )
     {
@@ -382,6 +381,7 @@ static int x264_validate_parameters( x264_t *h )
         float qp_b = qp_p + 6*log(h->param.rc.f_pb_factor)/log(2);
         h->param.rc.i_qp_min = x264_clip3( (int)(X264_MIN3( qp_p, qp_i, qp_b )), 0, 51 );
         h->param.rc.i_qp_max = x264_clip3( (int)(X264_MAX3( qp_p, qp_i, qp_b ) + .999), 0, 51 );
+        h->param.rc.i_aq_mode = 0;
     }
 
     if( ( h->param.i_width % 16 || h->param.i_height % 16 )