Only memset for palettes of 16 elements.

Originally committed as revision 20377 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Benoit Fouet 2009-10-27 15:04:35 +00:00
parent 6d7d410f8b
commit 25b6d0bc69
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ static void pcx_palette(const uint8_t **src, uint32_t *dst, unsigned int pallen)
for (i=0; i<pallen; i++)
*dst++ = bytestream_get_be24(src);
if (pallen < 256)
memset(dst, 0, (256 - pallen) * sizeof(*dst));
}