mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-10-05 09:59:52 +02:00
Only call inflateEnd when we were actually using the zlib code.
Originally committed as revision 19063 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4ad3df9da2
commit
908425c758
@ -593,6 +593,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
|
|||||||
if (c->pic.data[0])
|
if (c->pic.data[0])
|
||||||
avctx->release_buffer(avctx, &c->pic);
|
avctx->release_buffer(avctx, &c->pic);
|
||||||
#if CONFIG_ZLIB_DECODER
|
#if CONFIG_ZLIB_DECODER
|
||||||
|
if (avctx->codec_id == CODEC_ID_ZLIB)
|
||||||
inflateEnd(&c->zstream);
|
inflateEnd(&c->zstream);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user