summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-15 17:16:50 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-15 17:16:50 +0000
commit77edf866483072f90c2312fcde2d7ba06e4e6745 (patch)
treeb73c10c72f39a58914a9c261cc27a0b2d1df5931
parenta57afd2943a4c222c1575abd8707120c80267be9 (diff)
Add missing release_buffer at decode end for asv1 decoder.
Originally committed as revision 20241 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/asv1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/asv1.c b/libavcodec/asv1.c
index 5f9d5232fd..3b60bc1566 100644
--- a/libavcodec/asv1.c
+++ b/libavcodec/asv1.c
@@ -607,6 +607,9 @@ static av_cold int decode_end(AVCodecContext *avctx){
av_freep(&a->picture.qscale_table);
a->bitstream_buffer_size=0;
+ if(a->picture.data[0])
+ avctx->release_buffer(avctx, &a->picture);
+
return 0;
}