Mercurial > libavcodec.hg
changeset 9779:4605c1f6e877 libavcodec
Only call inflateEnd when we were actually using the zlib code.
author | reimar |
---|---|
date | Sun, 31 May 2009 11:42:50 +0000 |
parents | d40725b7f6e0 |
children | 9f3ef4eea41a |
files | lcldec.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lcldec.c Sun May 31 11:41:49 2009 +0000 +++ b/lcldec.c Sun May 31 11:42:50 2009 +0000 @@ -593,7 +593,8 @@ 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;