[FFmpeg-cvslog] r21405 - trunk/libavcodec/mdec.c

reimar subversion
Sat Jan 23 19:04:09 CET 2010


Author: reimar
Date: Sat Jan 23 19:04:09 2010
New Revision: 21405

Log:
Release buffer when the codec is closed.

Modified:
   trunk/libavcodec/mdec.c

Modified: trunk/libavcodec/mdec.c
==============================================================================
--- trunk/libavcodec/mdec.c	Sat Jan 23 19:01:38 2010	(r21404)
+++ trunk/libavcodec/mdec.c	Sat Jan 23 19:04:09 2010	(r21405)
@@ -239,6 +239,8 @@ static av_cold int decode_init(AVCodecCo
 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;



More information about the ffmpeg-cvslog mailing list