From: Reimar Döffinger Date: Sat, 23 Jan 2010 15:19:34 +0000 (+0000) Subject: Remove redundant initialization of the palette, it is part of the context X-Git-Tag: v0.6~1714 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab8075a2dac453e4bb720184ad9841d24f7055a4;p=platform%2Fupstream%2Flibav.git Remove redundant initialization of the palette, it is part of the context and that one is always 0-initialized already. Originally committed as revision 21398 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/vb.c b/libavcodec/vb.c index f4f2ee1..155cceb 100644 --- a/libavcodec/vb.c +++ b/libavcodec/vb.c @@ -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; }