[FFmpeg-cvslog] r19038 - trunk/libavcodec/lcldec.c

reimar subversion
Sun May 31 11:27:08 CEST 2009


Author: reimar
Date: Sun May 31 11:27:07 2009
New Revision: 19038

Log:
Move variable into block where it is used, avoiding a unused variable
warning if the zlib decoder is disabled.

Modified:
   trunk/libavcodec/lcldec.c

Modified: trunk/libavcodec/lcldec.c
==============================================================================
--- trunk/libavcodec/lcldec.c	Sun May 31 11:23:54 2009	(r19037)
+++ trunk/libavcodec/lcldec.c	Sun May 31 11:27:07 2009	(r19038)
@@ -463,7 +463,6 @@ static av_cold int decode_init(AVCodecCo
     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(AVCodecCo
     /* 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;



More information about the ffmpeg-cvslog mailing list