]> git.sesse.net Git - vlc/commitdiff
png: set visible_ width/height
authorTristan Matthews <le.businessman@gmail.com>
Tue, 18 Mar 2014 17:30:15 +0000 (13:30 -0400)
committerTristan Matthews <le.businessman@gmail.com>
Tue, 18 Mar 2014 17:34:05 +0000 (13:34 -0400)
modules/codec/png.c

index 54a90fc307aa1c7186e47d176b47c26cb9873b3b..d03e15ab337adc8aeaea11a17a61207792008406 100644 (file)
@@ -251,8 +251,8 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
 
     /* Set output properties */
     p_dec->fmt_out.i_codec = VLC_CODEC_RGBA;
-    p_dec->fmt_out.video.i_width = i_width;
-    p_dec->fmt_out.video.i_height = i_height;
+    p_dec->fmt_out.video.i_visible_width = p_dec->fmt_out.video.i_width = i_width;
+    p_dec->fmt_out.video.i_visible_height = p_dec->fmt_out.video.i_height = i_height;
     p_dec->fmt_out.video.i_sar_num = 1;
     p_dec->fmt_out.video.i_sar_den = 1;
     p_dec->fmt_out.video.i_rmask = 0x000000ff;