[FFmpeg-cvslog] tmv: initialize unused pallete entries with 0
Paul B Mahol
git at videolan.org
Tue Feb 19 12:15:50 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Feb 18 17:03:58 2013 +0000| [03b711d95e28c402763b1da42109ab5b63cc711f] | committer: Paul B Mahol
tmv: initialize unused pallete entries with 0
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=03b711d95e28c402763b1da42109ab5b63cc711f
---
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++) {
More information about the ffmpeg-cvslog
mailing list