[FFmpeg-devel] [PATCH] tmv: initialize unused pallete entries with 0
Paul B Mahol
onemda at gmail.com
Mon Feb 18 18:05:11 CET 2013
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavcodec/tmv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/tmv.c b/libavcodec/tmv.c
index d198426..f8d7969 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++) {
--
1.7.11.4
More information about the ffmpeg-devel
mailing list