]> git.sesse.net Git - vlc/commitdiff
avcodec: make sure visible_width/height is defined
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 12 Feb 2014 08:46:33 +0000 (10:46 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 12 Feb 2014 08:47:09 +0000 (10:47 +0200)
modules/codec/avcodec/video.c

index 4e4da035d0d20c79e8fcc370c0435f20e39777f8..e8000e65800f5490ce3a7d5097681da7aec2325c 100644 (file)
@@ -147,6 +147,11 @@ static inline picture_t *ffmpeg_NewPictBuf( decoder_t *p_dec,
         p_dec->fmt_out.video.i_visible_width = p_context->width;
         p_dec->fmt_out.video.i_visible_height = p_context->height;
     }
+    else
+    {
+        p_dec->fmt_out.video.i_visible_width = width;
+        p_dec->fmt_out.video.i_visible_height = height;
+    }
 
     if( !p_sys->p_va && GetVlcChroma( &p_dec->fmt_out.video, p_context->pix_fmt ) )
     {