Mercurial > libavcodec.hg
changeset 9754:269e16268683 libavcodec
Move variable into block where it is used, avoiding a unused variable
warning if the zlib decoder is disabled.
author | reimar |
---|---|
date | Sun, 31 May 2009 09:27:07 +0000 |
parents | ddd880ab64c6 |
children | bd5d76a5ffac |
files | lcldec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lcldec.c Sun May 31 09:23:54 2009 +0000 +++ b/lcldec.c Sun May 31 09:27:07 2009 +0000 @@ -463,7 +463,6 @@ unsigned int basesize = avctx->width * avctx->height; unsigned int max_basesize = ((avctx->width + 3) & ~3) * ((avctx->height + 3) & ~3); unsigned int max_decomp_size; - int zret; // Zlib return code c->pic.data[0] = NULL; @@ -595,6 +594,7 @@ /* If needed init zlib */ #if CONFIG_ZLIB_DECODER if (avctx->codec_id == CODEC_ID_ZLIB) { + int zret; c->zstream.zalloc = Z_NULL; c->zstream.zfree = Z_NULL; c->zstream.opaque = Z_NULL;