mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Only memset for palettes of 16 elements.
Originally committed as revision 20377 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6d7d410f8b
commit
25b6d0bc69
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user