summaryrefslogtreecommitdiff
path: root/libavcodec/tmv.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-02-18 17:03:58 +0000
committerPaul B Mahol <onemda@gmail.com>2013-02-19 11:11:42 +0000
commit03b711d95e28c402763b1da42109ab5b63cc711f (patch)
tree56452f1f01694d11a51b7c02190ea0c201028c2a /libavcodec/tmv.c
parentf2d200d460abe51e0a033162b416ae9f5c3299a6 (diff)
downloadffmpeg-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.c1
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++) {