[FFmpeg-cvslog] r20230 - trunk/libavcodec/utils.c
reimar
subversion
Tue Oct 13 22:48:51 CEST 2009
Author: reimar
Date: Tue Oct 13 22:48:51 2009
New Revision: 20230
Log:
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.
Modified:
trunk/libavcodec/utils.c
Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c Tue Oct 13 22:13:28 2009 (r20229)
+++ trunk/libavcodec/utils.c Tue Oct 13 22:48:51 2009 (r20230)
@@ -946,6 +946,8 @@ void avcodec_default_free_buffers(AVCode
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++){
More information about the ffmpeg-cvslog
mailing list