Skip to content
Snippets Groups Projects
Commit 6231d098 authored by Reimar Döffinger's avatar Reimar Döffinger
Browse files

Release buffer when the codec is closed.

Originally committed as revision 21405 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b9e3f85d
No related branches found
No related tags found
No related merge requests found
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment