aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cdgraphics.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-02-18 16:37:32 +0000
committerPaul B Mahol <onemda@gmail.com>2013-02-18 16:38:06 +0000
commit85921499c747a57cef4ae625cb85e6ebfa1bebf1 (patch)
tree5be413589c2e44cff965cd9eac0e6a0cf0616507 /libavcodec/cdgraphics.c
parent1f4ab61b746b0a51624466fac5e7dc60eea19aa0 (diff)
downloadffmpeg-85921499c747a57cef4ae625cb85e6ebfa1bebf1.tar.gz
cdgraphics: set palette to zero too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/cdgraphics.c')
-rw-r--r--libavcodec/cdgraphics.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/cdgraphics.c b/libavcodec/cdgraphics.c
index 6d957f31d1..202211d124 100644
--- a/libavcodec/cdgraphics.c
+++ b/libavcodec/cdgraphics.c
@@ -291,8 +291,10 @@ static int cdg_decode_frame(AVCodecContext *avctx,
av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
return ret;
}
- if (!avctx->frame_number)
+ if (!avctx->frame_number) {
memset(cc->frame.data[0], 0, cc->frame.linesize[0] * avctx->height);
+ memset(cc->frame.data[1], 0, AVPALETTE_SIZE);
+ }
command = bytestream_get_byte(&buf);
inst = bytestream_get_byte(&buf);