Commit 3e906f4c authored by Stefano Sabatini's avatar Stefano Sabatini

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

all the paletted formats.

Originally committed as revision 30317 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
parent 006aa1a4
......@@ -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;
}
}
......
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