mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-29 22:40:23 +00:00
tmv: initialize unused pallete entries with 0
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
f2d200d460
commit
03b711d95e
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user