]> git.videolan.org Git - x264.git/commitdiff
Remove obsolete mvcost init code
authorJason Garrett-Glaser <jason@x264.com>
Tue, 8 Feb 2011 22:48:18 +0000 (14:48 -0800)
committerJason Garrett-Glaser <jason@x264.com>
Fri, 18 Feb 2011 09:51:49 +0000 (01:51 -0800)
encoder/encoder.c

index eb64f57cbd2d75abcf0f5b901f96bd6f722b5b01..e1c2a2ef42c0f1ab6696209a9135b6c5496b488d 100644 (file)
@@ -1065,8 +1065,7 @@ x264_t *x264_encoder_open( x264_param_t *param )
         p += sprintf( p, " none!" );
     x264_log( h, X264_LOG_INFO, "%s\n", buf );
 
-    int qp_max = h->param.rc.i_qp_max == QP_MAX_SPEC ? QP_MAX : h->param.rc.i_qp_max;
-    for( qp = X264_MIN( h->param.rc.i_qp_min, QP_MAX_SPEC ); qp <= qp_max; qp++ )
+    for( qp = X264_MIN( h->param.rc.i_qp_min, QP_MAX_SPEC ); qp <= h->param.rc.i_qp_max; qp++ )
         if( x264_analyse_init_costs( h, qp ) )
             goto fail;
     if( x264_analyse_init_costs( h, X264_LOOKAHEAD_QP ) )