diff options
author | Benoit Fouet <benoit.fouet@free.fr> | 2009-10-27 15:04:35 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2009-10-27 15:04:35 +0000 |
commit | 25b6d0bc697abce3c2584205ce6efc592cfe3aec (patch) | |
tree | 753086bdf75ac1245dabe82db336e9fd19c91c5d /libavcodec | |
parent | 6d7d410f8b35194d01771162c24202e286fbcda4 (diff) | |
download | ffmpeg-25b6d0bc697abce3c2584205ce6efc592cfe3aec.tar.gz |
Only memset for palettes of 16 elements.
Originally committed as revision 20377 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pcx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/pcx.c b/libavcodec/pcx.c index df6a8aa74a..51c9acf247 100644 --- a/libavcodec/pcx.c +++ b/libavcodec/pcx.c @@ -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)); } |