Commit 32112362 authored by reimar's avatar reimar

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20230 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 18a3fae4
...@@ -946,6 +946,8 @@ void avcodec_default_free_buffers(AVCodecContext *s){ ...@@ -946,6 +946,8 @@ void avcodec_default_free_buffers(AVCodecContext *s){
if(s->internal_buffer==NULL) return; 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++){ for(i=0; i<INTERNAL_BUFFER_SIZE; i++){
InternalBuffer *buf= &((InternalBuffer*)s->internal_buffer)[i]; InternalBuffer *buf= &((InternalBuffer*)s->internal_buffer)[i];
for(j=0; j<4; j++){ for(j=0; j<4; j++){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment