[FFmpeg-cvslog] r20377 - trunk/libavcodec/pcx.c
benoit
subversion
Tue Oct 27 16:04:36 CET 2009
Author: benoit
Date: Tue Oct 27 16:04:35 2009
New Revision: 20377
Log:
Only memset for palettes of 16 elements.
Modified:
trunk/libavcodec/pcx.c
Modified: trunk/libavcodec/pcx.c
==============================================================================
--- trunk/libavcodec/pcx.c Tue Oct 27 09:30:50 2009 (r20376)
+++ trunk/libavcodec/pcx.c Tue Oct 27 16:04:35 2009 (r20377)
@@ -71,6 +71,7 @@ static void pcx_palette(const uint8_t **
for (i=0; i<pallen; i++)
*dst++ = bytestream_get_be24(src);
+ if (pallen < 256)
memset(dst, 0, (256 - pallen) * sizeof(*dst));
}
More information about the ffmpeg-cvslog
mailing list