Commit 6601498e authored by reimar's avatar reimar

Only call inflateEnd when we were actually using the zlib code.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19063 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5d7f5afb
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment