Commit ab9d7f10 authored by Erwan Tulou's avatar 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.
parent fe5e4ac1
......@@ -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 ||
......
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