changeset 10978:8754b8361dc9 libavcodec

Release buffer when the codec is closed.
author reimar
date Sat, 23 Jan 2010 18:04:09 +0000
parents a7a2892e24de
children 776dba50775c
files mdec.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mdec.c	Sat Jan 23 18:01:38 2010 +0000
+++ b/mdec.c	Sat Jan 23 18:04:09 2010 +0000
@@ -239,6 +239,8 @@
 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;