diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-02-18 16:19:27 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-02-18 16:19:27 +0000 |
commit | 1f4ab61b746b0a51624466fac5e7dc60eea19aa0 (patch) | |
tree | 7d0017dbd5d21e19c4e18ed697680a2c9b20ccff /libavcodec/cdxl.c | |
parent | 71ae8d50b283732143cb5e319b09878a4738d3be (diff) | |
download | ffmpeg-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cdxl.c b/libavcodec/cdxl.c index 3c2afd0232..1af69b75b4 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]); } |