Commit 03b711d9 authored by Paul B Mahol's avatar Paul B Mahol

tmv: initialize unused pallete entries with 0

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent f2d200d4
......@@ -71,6 +71,7 @@ static int tmv_decode_frame(AVCodecContext *avctx, void *data,
tmv->pic.palette_has_changed = 1;
memcpy(tmv->pic.data[1], ff_cga_palette, 16 * 4);
memset(tmv->pic.data[1] + 16 * 4, 0, AVPALETTE_SIZE - 16 * 4);
for (y = 0; y < char_rows; y++) {
for (x = 0; x < char_cols; x++) {
......
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