Commit 00af38ec authored by stefano's avatar stefano

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

all the paletted formats.


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@30317 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 174d0bcc
...@@ -2935,12 +2935,8 @@ static void reset_ptr(const uint8_t* src[], int format) ...@@ -2935,12 +2935,8 @@ static void reset_ptr(const uint8_t* src[], int format)
src[3]=NULL; src[3]=NULL;
if(!isPlanarYUV(format)) { if(!isPlanarYUV(format)) {
src[3]=src[2]=NULL; src[3]=src[2]=NULL;
if( format != PIX_FMT_PAL8
&& format != PIX_FMT_RGB8 if (!usePal(format))
&& format != PIX_FMT_BGR8
&& format != PIX_FMT_RGB4_BYTE
&& format != PIX_FMT_BGR4_BYTE
)
src[1]= NULL; src[1]= NULL;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment