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:
4a49ab7
)
Print a warning message when avcodec_default_free_buffers finds unreleased
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Tue, 13 Oct 2009 20:48:51 +0000
(20:48 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Tue, 13 Oct 2009 20:48:51 +0000
(20:48 +0000)
buffers, this hopefully should help detect codecs that do not release all
buffers e.g. in the decode_end function.
Originally committed as revision 20230 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
1077fd7
..
548f947
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-946,6
+946,8
@@
void avcodec_default_free_buffers(AVCodecContext *s){
if(s->internal_buffer==NULL) return;
+ if (s->internal_buffer_count)
+ av_log(s, AV_LOG_WARNING, "Found %i unreleased buffers!\n", s->internal_buffer_count);
for(i=0; i<INTERNAL_BUFFER_SIZE; i++){
InternalBuffer *buf= &((InternalBuffer*)s->internal_buffer)[i];
for(j=0; j<4; j++){