aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-05-31 11:42:50 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-05-31 11:42:50 +0000
commit908425c758569577f4ba4b6e2772308112ad1385 (patch)
tree35ae48b2b23a6365205370aaca864fb7647894cb
parent4ad3df9da2f3d247eab186cef4b2793cb355edaf (diff)
downloadffmpeg-908425c758569577f4ba4b6e2772308112ad1385.tar.gz
Only call inflateEnd when we were actually using the zlib code.
Originally committed as revision 19063 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/lcldec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index cb2b5e66fd..0d56303298 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -593,7 +593,8 @@ static av_cold int decode_end(AVCodecContext *avctx)
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;