Commit 1f4ab61b authored by Paul B Mahol's avatar Paul B Mahol

lavc/cdxl: clear palette before reading it

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 71ae8d50
......@@ -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]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment