Browse Source

avctx->priv_data is initialized to 0, get rid of useless extra initialization.

Originally committed as revision 19062 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Reimar Döffinger 16 years ago
parent
commit
4ad3df9da2
1 changed files with 0 additions and 7 deletions
  1. +0
    -7
      libavcodec/lcldec.c

+ 0
- 7
libavcodec/lcldec.c View File

@@ -443,13 +443,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
unsigned int max_basesize = FFALIGN(avctx->width, 4) * FFALIGN(avctx->height, 4) + AV_LZO_OUTPUT_PADDING;
unsigned int max_decomp_size;

c->pic.data[0] = NULL;

#if CONFIG_ZLIB_DECODER
// Needed if zlib unused or init aborted before inflateInit
memset(&c->zstream, 0, sizeof(z_stream));
#endif

if (avctx->extradata_size < 8) {
av_log(avctx, AV_LOG_ERROR, "Extradata size too small.\n");
return 1;


Loading…
Cancel
Save