Commit ad93a448 authored by benoit's avatar benoit

Only memset for palettes of 16 elements.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20377 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent aa9370b1
...@@ -71,6 +71,7 @@ static void pcx_palette(const uint8_t **src, uint32_t *dst, unsigned int pallen) ...@@ -71,6 +71,7 @@ static void pcx_palette(const uint8_t **src, uint32_t *dst, unsigned int pallen)
for (i=0; i<pallen; i++) for (i=0; i<pallen; i++)
*dst++ = bytestream_get_be24(src); *dst++ = bytestream_get_be24(src);
if (pallen < 256)
memset(dst, 0, (256 - pallen) * sizeof(*dst)); memset(dst, 0, (256 - pallen) * sizeof(*dst));
} }
......
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