Commit 8a47c573 authored by gbazin's avatar gbazin
Browse files

* src/video_output/vout_intf.c: small fix for cropping.

parent 71b13565
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment