changeset 10398:11b685acd280 libavcodec

Print a warning message when avcodec_default_free_buffers finds unreleased buffers, this hopefully should help detect codecs that do not release all buffers e.g. in the decode_end function.
author reimar
date Tue, 13 Oct 2009 20:48:51 +0000
parents d7ed9dcc78e3
children 136334ad62b3
files utils.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Tue Oct 13 20:13:28 2009 +0000
+++ b/utils.c	Tue Oct 13 20:48:51 2009 +0000
@@ -946,6 +946,8 @@
 
     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++){