Commit e939de55 authored by reimar's avatar reimar

Release buffer when the codec is closed.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21405 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cb26a80e
...@@ -239,6 +239,8 @@ static av_cold int decode_init(AVCodecContext *avctx){ ...@@ -239,6 +239,8 @@ static av_cold int decode_init(AVCodecContext *avctx){
static av_cold int decode_end(AVCodecContext *avctx){ static av_cold int decode_end(AVCodecContext *avctx){
MDECContext * const a = avctx->priv_data; 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->bitstream_buffer);
av_freep(&a->picture.qscale_table); av_freep(&a->picture.qscale_table);
a->bitstream_buffer_size=0; 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