# HG changeset patch # User reimar # Date 1243762027 0 # Node ID 269e162686833140721cfb147e984797fa7ebc88 # Parent ddd880ab64c683814468d01c03209f7e1a628e16 Move variable into block where it is used, avoiding a unused variable warning if the zlib decoder is disabled. diff -r ddd880ab64c6 -r 269e16268683 lcldec.c --- 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;