OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b35b8
)
Add missing release_buffer on close
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Tue, 13 Oct 2009 18:28:37 +0000
(18:28 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Tue, 13 Oct 2009 18:28:37 +0000
(18:28 +0000)
Originally committed as revision 20227 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/4xm.c
patch
|
blob
|
history
diff --git
a/libavcodec/4xm.c
b/libavcodec/4xm.c
index
cc0bcd4
..
d2172ba
100644
(file)
--- a/
libavcodec/4xm.c
+++ b/
libavcodec/4xm.c
@@
-832,6
+832,10
@@
static av_cold int decode_end(AVCodecContext *avctx){
f->cfrm[i].allocated_size= 0;
}
free_vlc(&f->pre_vlc);
+ if(f->current_picture.data[0])
+ avctx->release_buffer(avctx, &f->current_picture);
+ if(f->last_picture.data[0])
+ avctx->release_buffer(avctx, &f->last_picture);
return 0;
}