projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9e3f85
)
Release buffer when the codec is closed.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 23 Jan 2010 18:04:09 +0000
(18:04 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 23 Jan 2010 18:04:09 +0000
(18:04 +0000)
Originally committed as revision 21405 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mdec.c
b/libavcodec/mdec.c
index
fa9661e
..
9ae2258
100644
(file)
--- 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;