]> git.sesse.net Git - ffmpeg/commitdiff
Remove redundant initialization of the palette, it is part of the context
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 23 Jan 2010 15:19:34 +0000 (15:19 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 23 Jan 2010 15:19:34 +0000 (15:19 +0000)
and that one is always 0-initialized already.

Originally committed as revision 21398 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vb.c

index f4f2ee1bfc5767b05f644845df48c91a7a4dca5f..155ccebbc447aaf34966fa9af14b8b63423c25dd 100644 (file)
@@ -272,8 +272,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
     c->frame      = av_mallocz(avctx->width * avctx->height);
     c->prev_frame = av_mallocz(avctx->width * avctx->height);
 
-    memset(c->pal, 0, sizeof(c->pal));
-
     return 0;
 }