Mercurial > libavcodec.hg
comparison qpeg.c @ 9553:4cab394c16ea libavcodec
Remove useless assignment during initialization for some decoders
author | kostya |
---|---|
date | Fri, 24 Apr 2009 14:09:24 +0000 |
parents | 54bc8a2727b0 |
children | de14016e0b2d |
comparison
equal
deleted
inserted
replaced
9552:4fd9ac9978e5 | 9553:4cab394c16ea |
---|---|
289 static av_cold int decode_init(AVCodecContext *avctx){ | 289 static av_cold int decode_init(AVCodecContext *avctx){ |
290 QpegContext * const a = avctx->priv_data; | 290 QpegContext * const a = avctx->priv_data; |
291 | 291 |
292 a->avctx = avctx; | 292 a->avctx = avctx; |
293 avctx->pix_fmt= PIX_FMT_PAL8; | 293 avctx->pix_fmt= PIX_FMT_PAL8; |
294 a->pic.data[0] = NULL; | |
295 a->refdata = av_malloc(avctx->width * avctx->height); | 294 a->refdata = av_malloc(avctx->width * avctx->height); |
296 | 295 |
297 return 0; | 296 return 0; |
298 } | 297 } |
299 | 298 |