summaryrefslogtreecommitdiff
path: root/libavcodec/lcldec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-05-31 09:27:07 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-05-31 09:27:07 +0000
commit46c02b1b50c69936f47cf746079ca6df6d363a92 (patch)
tree292d29c95c00f2662283e6ca560cf397d0572352 /libavcodec/lcldec.c
parent2b550f816abc592068981723b315ec8130f560e0 (diff)
Move variable into block where it is used, avoiding a unused variable
warning if the zlib decoder is disabled. Originally committed as revision 19038 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lcldec.c')
-rw-r--r--libavcodec/lcldec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index 18cbd86fc6..c955ff6062 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -463,7 +463,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
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 @@ static av_cold int decode_init(AVCodecContext *avctx)
/* 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;