From: Gildas Bazin Date: Wed, 26 Oct 2005 07:51:19 +0000 (+0000) Subject: * src/video_output/vout_intf.c: small fix for cropping. X-Git-Tag: 0.8.4~135 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8a47c573fe02fac7e313dc2cd88b3f7760f5adc3;p=vlc * src/video_output/vout_intf.c: small fix for cropping. --- diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c index 3c801a37f5..c682954ed5 100644 --- a/src/video_output/vout_intf.c +++ b/src/video_output/vout_intf.c @@ -498,7 +498,7 @@ static int CropCallback( vlc_object_t *p_this, char const *psz_cmd, i_height = p_vout->fmt_render.i_visible_width * p_vout->fmt_in.i_sar_num * i_aspect_den / i_aspect_num / p_vout->fmt_in.i_sar_den; - if( i_width < p_vout->fmt_render.i_visible_height ) + if( i_width < p_vout->fmt_render.i_visible_width ) { p_vout->fmt_in.i_x_offset = p_vout->fmt_render.i_x_offset + (p_vout->fmt_render.i_visible_width - i_width) / 2;