diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-02-18 17:03:58 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-02-19 11:11:42 +0000 |
commit | 03b711d95e28c402763b1da42109ab5b63cc711f (patch) | |
tree | 56452f1f01694d11a51b7c02190ea0c201028c2a /libavcodec/tmv.c | |
parent | f2d200d460abe51e0a033162b416ae9f5c3299a6 (diff) | |
download | ffmpeg-03b711d95e28c402763b1da42109ab5b63cc711f.tar.gz |
tmv: initialize unused pallete entries with 0
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/tmv.c')
-rw-r--r-- | libavcodec/tmv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/tmv.c b/libavcodec/tmv.c index d198426356..f8d7969d40 100644 --- a/libavcodec/tmv.c +++ b/libavcodec/tmv.c @@ -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++) { |