comparison lcldec.c @ 9778:d40725b7f6e0 libavcodec

avctx->priv_data is initialized to 0, get rid of useless extra initialization.
author reimar
date Sun, 31 May 2009 11:41:49 +0000
parents 77fd9731dea5
children 4605c1f6e877
comparison
equal deleted inserted replaced
9777:77fd9731dea5 9778:d40725b7f6e0
441 LclDecContext * const c = avctx->priv_data; 441 LclDecContext * const c = avctx->priv_data;
442 unsigned int basesize = avctx->width * avctx->height; 442 unsigned int basesize = avctx->width * avctx->height;
443 unsigned int max_basesize = FFALIGN(avctx->width, 4) * FFALIGN(avctx->height, 4) + AV_LZO_OUTPUT_PADDING; 443 unsigned int max_basesize = FFALIGN(avctx->width, 4) * FFALIGN(avctx->height, 4) + AV_LZO_OUTPUT_PADDING;
444 unsigned int max_decomp_size; 444 unsigned int max_decomp_size;
445 445
446 c->pic.data[0] = NULL;
447
448 #if CONFIG_ZLIB_DECODER
449 // Needed if zlib unused or init aborted before inflateInit
450 memset(&c->zstream, 0, sizeof(z_stream));
451 #endif
452
453 if (avctx->extradata_size < 8) { 446 if (avctx->extradata_size < 8) {
454 av_log(avctx, AV_LOG_ERROR, "Extradata size too small.\n"); 447 av_log(avctx, AV_LOG_ERROR, "Extradata size too small.\n");
455 return 1; 448 return 1;
456 } 449 }
457 450