mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 04:17:05 +00:00
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
This commit is contained in:
parent
006aa1a4c2
commit
3e906f4cfb
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user