You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
tmv: initialize unused pallete entries with 0
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user