summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavcodec/cdxl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cdxl.c b/libavcodec/cdxl.c
index 3c2afd0..1af69b7 100644
--- a/libavcodec/cdxl.c
+++ b/libavcodec/cdxl.c
@@ -119,6 +119,7 @@ static void cdxl_decode_rgb(CDXLVideoContext *c)
{
uint32_t *new_palette = (uint32_t *)c->frame.data[1];
+ memset(c->frame.data[1], 0, AVPALETTE_SIZE);
import_palette(c, new_palette);
import_format(c, c->frame.linesize[0], c->frame.data[0]);
}
OpenPOWER on IntegriCloud