From 8a47c573fe02fac7e313dc2cd88b3f7760f5adc3 Mon Sep 17 00:00:00 2001 From: Gildas Bazin Date: Wed, 26 Oct 2005 07:51:19 +0000 Subject: [PATCH] * src/video_output/vout_intf.c: small fix for cropping. --- src/video_output/vout_intf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2