summaryrefslogtreecommitdiffstats
path: root/libavcodec/cdxl.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-02-18 16:19:27 +0000
committerPaul B Mahol <onemda@gmail.com>2013-02-18 16:19:27 +0000
commit1f4ab61b746b0a51624466fac5e7dc60eea19aa0 (patch)
tree7d0017dbd5d21e19c4e18ed697680a2c9b20ccff /libavcodec/cdxl.c
parent71ae8d50b283732143cb5e319b09878a4738d3be (diff)
downloadffmpeg-streaming-1f4ab61b746b0a51624466fac5e7dc60eea19aa0.zip
ffmpeg-streaming-1f4ab61b746b0a51624466fac5e7dc60eea19aa0.tar.gz
lavc/cdxl: clear palette before reading it
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/cdxl.c')
-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