[SCM] libav/experimental: Release buffer when the codec is closed.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:58:25 UTC 2013
The following commit has been merged in the experimental branch:
commit 6231d0983b1e773c5244f84b0fd2b6a26c01eea7
Author: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Date: Sat Jan 23 18:04:09 2010 +0000
Release buffer when the codec is closed.
Originally committed as revision 21405 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index fa9661e..9ae2258 100644
--- a/libavcodec/mdec.c
+++ b/libavcodec/mdec.c
@@ -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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list