diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2010-01-22 18:28:41 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2010-01-22 18:28:41 +0000 |
commit | 27276496777dce487d6438d93da46095fce82f43 (patch) | |
tree | 6e3b98832bb1240988291ebb52bbf0dc69f5dd98 /libavcodec/vb.c | |
parent | 64810754432d8ea42f2ca153e0561f3101cb0f4c (diff) | |
download | ffmpeg-27276496777dce487d6438d93da46095fce82f43.tar.gz |
Zero palette in case not all entries are initialized later
Originally committed as revision 21384 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vb.c')
-rw-r--r-- | libavcodec/vb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vb.c b/libavcodec/vb.c index 551b10657c..0d5168a225 100644 --- a/libavcodec/vb.c +++ b/libavcodec/vb.c @@ -254,6 +254,8 @@ static av_cold int decode_init(AVCodecContext *avctx) c->frame = av_malloc( avctx->width * avctx->height); c->prev_frame = av_malloc( avctx->width * avctx->height); + memset(c->pal, 0, sizeof(c->pal)); + return 0; } |