Simplify reset_ptr(): employ usePal() macro rather than enumerating

all the paletted formats.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30317 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
stefano 2010-01-16 11:08:16 +00:00
parent f7c5fa6a14
commit 4644bd6293
1 changed files with 2 additions and 6 deletions

View File

@ -2935,12 +2935,8 @@ static void reset_ptr(const uint8_t* src[], int format)
src[3]=NULL;
if(!isPlanarYUV(format)) {
src[3]=src[2]=NULL;
if( format != PIX_FMT_PAL8
&& format != PIX_FMT_RGB8
&& format != PIX_FMT_BGR8
&& format != PIX_FMT_RGB4_BYTE
&& format != PIX_FMT_BGR4_BYTE
)
if (!usePal(format))
src[1]= NULL;
}
}