[vlc-commits] image: fix image misfunctioning in recent builds
Erwan Tulou
git at videolan.org
Mon Dec 9 22:25:13 CET 2013
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Mon Dec 9 14:51:56 2013 +0100| [ab9d7f10a0cf96aff07e1f0c37f61f6a06b1fbda] | committer: Erwan Tulou
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ab9d7f10a0cf96aff07e1f0c37f61f6a06b1fbda
---
src/misc/image.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/misc/image.c b/src/misc/image.c
index 2ce3f9c..e0a3ad8 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 ||
More information about the vlc-commits
mailing list