[FFmpeg-cvslog] lavc/cdxl: clear palette before reading it
Paul B Mahol
git at videolan.org
Mon Feb 18 17:26:27 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Feb 18 16:19:27 2013 +0000| [1f4ab61b746b0a51624466fac5e7dc60eea19aa0] | committer: Paul B Mahol
lavc/cdxl: clear palette before reading it
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1f4ab61b746b0a51624466fac5e7dc60eea19aa0
---
libavcodec/cdxl.c | 1 +
1 file changed, 1 insertion(+)
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]);
}
More information about the ffmpeg-cvslog
mailing list