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
This commit is contained in:
arpi 2002-09-04 23:17:53 +00:00
parent d458a5a30d
commit ef95064658
1 changed files with 3 additions and 1 deletions

View File

@ -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