Commit a713a1ec authored by astrange's avatar astrange

Print the address of the AVCodecContext in av_log().

This makes debug output much easier to read when the
same codec is open more than once.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14237 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 14c04b87
......@@ -36,7 +36,7 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
return;
#undef fprintf
if(print_prefix && avc) {
fprintf(stderr, "[%s @ %p]", avc->item_name(ptr), avc);
fprintf(stderr, "[%s @ %p]", avc->item_name(ptr), ptr);
}
#define fprintf please_use_av_log
......
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