From: Laurent Aimar Date: Tue, 17 Aug 2004 21:08:23 +0000 (+0000) Subject: * encoder/encoder.c: oops. (fixed compilation). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f246a87fa64a4febe10a17e983f1b656d7914625;p=libx264 * encoder/encoder.c: oops. (fixed compilation). git-svn-id: svn://svn.videolan.org/x264/trunk@36 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/encoder.c b/encoder/encoder.c index f5b901c6..a61f9897 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -344,9 +344,9 @@ x264_t *x264_encoder_open ( x264_param_t *param ) /* VUI */ if( h->param.vui.i_sar_width > 0 && h->param.vui.i_sar_height > 0 ) { - int w = param->vui.i_sar_width; - int h = param->vui.i_sar_height; - int a = w, b = h; + int i_w = param->vui.i_sar_width; + int i_h = param->vui.i_sar_height; + int a = i_w, b = i_h; while( b != 0 ) { @@ -356,29 +356,29 @@ x264_t *x264_encoder_open ( x264_param_t *param ) b = t % b; } - w /= a; - h /= a; - while( w > 65535 || h > 65535 ) + i_w /= a; + i_h /= a; + while( i_w > 65535 || i_h > 65535 ) { - w /= 2; - h /= 2; + i_w /= 2; + i_h /= 2; } h->param.vui.i_sar_width = 0; h->param.vui.i_sar_height = 0; - if( w == 0 || h == 0 ) + if( i_w == 0 || i_h == 0 ) { x264_log( h, X264_LOG_ERROR, "cannot create valid sample aspect ratio\n" ); } - else if( w == h ) + else if( i_w == i_h ) { x264_log( h, X264_LOG_INFO, "no need for a SAR\n" ); } else { - x264_log( h, X264_LOG_INFO, "using SAR=%d/%d\n", w, h ); - h->param.vui.i_sar_width = w; - h->param.vui.i_sar_height = h; + x264_log( h, X264_LOG_INFO, "using SAR=%d/%d\n", i_w, i_h ); + h->param.vui.i_sar_width = i_w; + h->param.vui.i_sar_height = i_h; } }