]> git.sesse.net Git - vlc/commitdiff
jpeg: set visible_ width/height
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 18 Mar 2014 16:41:30 +0000 (18:41 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 18 Mar 2014 16:41:51 +0000 (18:41 +0200)
modules/codec/jpeg.c

index 2f31052ad7f3faeeff583db7a0f9cbe9695923fe..454ae95241f403d3986e5590b5068060187358f3 100644 (file)
@@ -222,8 +222,8 @@ static picture_t *DecodeBlock(decoder_t *p_dec, block_t **pp_block)
 
     /* Set output properties */
     p_dec->fmt_out.i_codec = VLC_CODEC_RGB24;
-    p_dec->fmt_out.video.i_width = p_sys->p_jpeg.output_width;
-    p_dec->fmt_out.video.i_height = p_sys->p_jpeg.output_height;
+    p_dec->fmt_out.video.i_visible_width  = p_dec->fmt_out.video.i_width  = p_sys->p_jpeg.output_width;
+    p_dec->fmt_out.video.i_visible_height = p_dec->fmt_out.video.i_height = p_sys->p_jpeg.output_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;