Mercurial > libavcodec.hg
comparison lcldec.c @ 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 |
comparison
equal
deleted
inserted
replaced
9778:d40725b7f6e0 | 9779:4605c1f6e877 |
---|---|
591 LclDecContext * const c = avctx->priv_data; | 591 LclDecContext * const c = avctx->priv_data; |
592 | 592 |
593 if (c->pic.data[0]) | 593 if (c->pic.data[0]) |
594 avctx->release_buffer(avctx, &c->pic); | 594 avctx->release_buffer(avctx, &c->pic); |
595 #if CONFIG_ZLIB_DECODER | 595 #if CONFIG_ZLIB_DECODER |
596 inflateEnd(&c->zstream); | 596 if (avctx->codec_id == CODEC_ID_ZLIB) |
597 inflateEnd(&c->zstream); | |
597 #endif | 598 #endif |
598 | 599 |
599 return 0; | 600 return 0; |
600 } | 601 } |
601 | 602 |