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

reimar subversion
Sun May 31 13:42:50 CEST 2009


Author: reimar
Date: Sun May 31 13:42:50 2009
New Revision: 19063

Log:
Only call inflateEnd when we were actually using the zlib code.

Modified:
   trunk/libavcodec/lcldec.c

Modified: trunk/libavcodec/lcldec.c
==============================================================================
--- trunk/libavcodec/lcldec.c	Sun May 31 13:41:49 2009	(r19062)
+++ trunk/libavcodec/lcldec.c	Sun May 31 13:42:50 2009	(r19063)
@@ -593,7 +593,8 @@ static av_cold int decode_end(AVCodecCon
     if (c->pic.data[0])
         avctx->release_buffer(avctx, &c->pic);
 #if CONFIG_ZLIB_DECODER
-    inflateEnd(&c->zstream);
+    if (avctx->codec_id == CODEC_ID_ZLIB)
+        inflateEnd(&c->zstream);
 #endif
 
     return 0;



More information about the ffmpeg-cvslog mailing list