Mercurial > libavcodec.hg
comparison vb.c @ 10971:d5f811c11f08 libavcodec
Remove redundant initialization of the palette, it is part of the context
and that one is always 0-initialized already.
author | reimar |
---|---|
date | Sat, 23 Jan 2010 15:19:34 +0000 |
parents | 1c3a10f94570 |
children | 3dd1cb77cc60 |
comparison
equal
deleted
inserted
replaced
10970:eb5f0ccb6a98 | 10971:d5f811c11f08 |
---|---|
270 avctx->pix_fmt = PIX_FMT_PAL8; | 270 avctx->pix_fmt = PIX_FMT_PAL8; |
271 | 271 |
272 c->frame = av_mallocz(avctx->width * avctx->height); | 272 c->frame = av_mallocz(avctx->width * avctx->height); |
273 c->prev_frame = av_mallocz(avctx->width * avctx->height); | 273 c->prev_frame = av_mallocz(avctx->width * avctx->height); |
274 | 274 |
275 memset(c->pal, 0, sizeof(c->pal)); | |
276 | |
277 return 0; | 275 return 0; |
278 } | 276 } |
279 | 277 |
280 static av_cold int decode_end(AVCodecContext *avctx) | 278 static av_cold int decode_end(AVCodecContext *avctx) |
281 { | 279 { |