From: Jason Garrett-Glaser Date: Tue, 8 Feb 2011 22:48:18 +0000 (-0800) Subject: Remove obsolete mvcost init code X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=02b0f74dbd5a2f9001598a8c07c9ff0f8b13b5e8;p=x264.git Remove obsolete mvcost init code --- diff --git a/encoder/encoder.c b/encoder/encoder.c index eb64f57c..e1c2a2ef 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -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 ) )