Commit 25b6d0bc authored by Benoit Fouet's avatar Benoit Fouet

Only memset for palettes of 16 elements.

Originally committed as revision 20377 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6d7d410f
......@@ -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));
}
......
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