From ef950646584360e2b04a258ba8ac72876bbdb565 Mon Sep 17 00:00:00 2001 From: arpi Date: Wed, 4 Sep 2002 23:17:53 +0000 Subject: 1000l - planar YUV support fixed (indeo 3,4,5, i263 etc) we shouldn't do planes[1]==NULL for formats like planar yuv git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7276 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_vfw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/vd_vfw.c b/libmpcodecs/vd_vfw.c index 67df32c862..0fff261a4b 100644 --- a/libmpcodecs/vd_vfw.c +++ b/libmpcodecs/vd_vfw.c @@ -317,6 +317,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ } // export palette: + if(mpi->imgfmt==IMGFMT_RGB8 || mpi->imgfmt==IMGFMT_BGR8){ if (priv->palette) { mpi->planes[1] = priv->palette; @@ -325,7 +326,8 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ } else mpi->planes[1]=NULL; - + } + return mpi; } #endif -- cgit v1.2.3