From ab9d7f10a0cf96aff07e1f0c37f61f6a06b1fbda Mon Sep 17 00:00:00 2001 From: Erwan Tulou Date: Mon, 9 Dec 2013 14:51:56 +0100 Subject: [PATCH] image: fix image misfunctioning in recent builds In the swscale filter plugin, i_visible_width and i_visible_height fields are now expected to be provided and greater than 0. This fixes art display problems with the skins2 in recent builds. --- src/misc/image.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/misc/image.c b/src/misc/image.c index 2ce3f9ca69..e0a3ad8412 100644 --- a/src/misc/image.c +++ b/src/misc/image.c @@ -174,6 +174,10 @@ static picture_t *ImageRead( image_handler_t *p_image, block_t *p_block, p_fmt_out->i_width = p_image->p_dec->fmt_out.video.i_width; if( !p_fmt_out->i_height ) p_fmt_out->i_height = p_image->p_dec->fmt_out.video.i_height; + if( !p_fmt_out->i_visible_width ) + p_fmt_out->i_visible_width = p_fmt_out->i_width; + if( !p_fmt_out->i_visible_height ) + p_fmt_out->i_visible_height = p_fmt_out->i_height; /* Check if we need chroma conversion or resizing */ if( p_image->p_dec->fmt_out.video.i_chroma != p_fmt_out->i_chroma || -- 2.11.4.GIT