mirror of https://git.ffmpeg.org/ffmpeg.git
lavc/cdxl: clear palette before reading it
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
71ae8d50b2
commit
1f4ab61b74
|
@ -119,6 +119,7 @@ static void cdxl_decode_rgb(CDXLVideoContext *c)
|
||||||
{
|
{
|
||||||
uint32_t *new_palette = (uint32_t *)c->frame.data[1];
|
uint32_t *new_palette = (uint32_t *)c->frame.data[1];
|
||||||
|
|
||||||
|
memset(c->frame.data[1], 0, AVPALETTE_SIZE);
|
||||||
import_palette(c, new_palette);
|
import_palette(c, new_palette);
|
||||||
import_format(c, c->frame.linesize[0], c->frame.data[0]);
|
import_format(c, c->frame.linesize[0], c->frame.data[0]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue