[vlc-commits] avcodec: make sure visible_width/height is defined

Ilkka Ollakka git at videolan.org
Wed Feb 12 09:53:39 CET 2014


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Feb 12 10:46:33 2014 +0200| [6cb520b528e46fca5118ed23bbc6ea5f05db8c1b] | committer: Ilkka Ollakka

avcodec: make sure visible_width/height is defined

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6cb520b528e46fca5118ed23bbc6ea5f05db8c1b
---

 modules/codec/avcodec/video.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 4e4da03..e8000e6 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -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 ) )
     {



More information about the vlc-commits mailing list