[FFmpeg-cvslog] cdgraphics: set palette to zero too
Paul B Mahol
git at videolan.org
Mon Feb 18 17:44:08 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Feb 18 16:37:32 2013 +0000| [85921499c747a57cef4ae625cb85e6ebfa1bebf1] | committer: Paul B Mahol
cdgraphics: set palette to zero too
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=85921499c747a57cef4ae625cb85e6ebfa1bebf1
---
libavcodec/cdgraphics.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/cdgraphics.c b/libavcodec/cdgraphics.c
index 6d957f3..202211d 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);
More information about the ffmpeg-cvslog
mailing list