[FFmpeg-cvslog] r30317 - trunk/libswscale/swscale.c
stefano
subversion
Sat Jan 16 12:08:16 CET 2010
Author: stefano
Date: Sat Jan 16 12:08:16 2010
New Revision: 30317
Log:
Simplify reset_ptr(): employ usePal() macro rather than enumerating
all the paletted formats.
Modified:
trunk/libswscale/swscale.c
Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c Sat Jan 16 11:48:23 2010 (r30316)
+++ trunk/libswscale/swscale.c Sat Jan 16 12:08:16 2010 (r30317)
@@ -2935,12 +2935,8 @@ static void reset_ptr(const uint8_t* src
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;
}
}
More information about the ffmpeg-cvslog
mailing list