Commit 6231d098 authored by Reimar Döffinger's avatar Reimar Döffinger

Release buffer when the codec is closed.

Originally committed as revision 21405 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b9e3f85d
......@@ -239,6 +239,8 @@ static av_cold int decode_init(AVCodecContext *avctx){
static av_cold int decode_end(AVCodecContext *avctx){
MDECContext * const a = avctx->priv_data;
if(a->picture.data[0])
avctx->release_buffer(avctx, &a->picture);
av_freep(&a->bitstream_buffer);
av_freep(&a->picture.qscale_table);
a->bitstream_buffer_size=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