[x264-devel] Remove obsolete mvcost init code

Jason Garrett-Glaser git at videolan.org
Sat Feb 19 00:34:08 CET 2011


x264 | branch: master | Jason Garrett-Glaser <jason at x264.com> | Tue Feb  8 14:48:18 2011 -0800| [02b0f74dbd5a2f9001598a8c07c9ff0f8b13b5e8] | committer: Jason Garrett-Glaser

Remove obsolete mvcost init code

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=02b0f74dbd5a2f9001598a8c07c9ff0f8b13b5e8
---

 encoder/encoder.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/encoder/encoder.c b/encoder/encoder.c
index eb64f57..e1c2a2e 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 ) )



More information about the x264-devel mailing list