changeset 10455:0609da72112c libavcodec

Only memset for palettes of 16 elements.
author benoit
date Tue, 27 Oct 2009 15:04:35 +0000
parents 7a0648324174
children 2422415a296c
files pcx.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pcx.c	Tue Oct 27 08:30:50 2009 +0000
+++ b/pcx.c	Tue Oct 27 15:04:35 2009 +0000
@@ -71,6 +71,7 @@
 
     for (i=0; i<pallen; i++)
         *dst++ = bytestream_get_be24(src);
+    if (pallen < 256)
     memset(dst, 0, (256 - pallen) * sizeof(*dst));
 }