diff options
author | Reimar Döffinger | 2009-05-31 11:42:50 +0000 |
---|---|---|
committer | Reimar Döffinger | 2009-05-31 11:42:50 +0000 |
commit | 908425c758569577f4ba4b6e2772308112ad1385 (patch) | |
tree | 35ae48b2b23a6365205370aaca864fb7647894cb /libavcodec/lcldec.c | |
parent | 4ad3df9da2f3d247eab186cef4b2793cb355edaf (diff) |
Only call inflateEnd when we were actually using the zlib code.
Originally committed as revision 19063 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lcldec.c')
-rw-r--r-- | libavcodec/lcldec.c | 3 |
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; |