summaryrefslogtreecommitdiff
path: root/libavutil/log.c
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2008-07-15 17:17:35 +0000
committerAlexander Strange <astrange@ithinksw.com>2008-07-15 17:17:35 +0000
commitb1e12f99a2008f970480f2b5137a942b5192cfc3 (patch)
treeb2b04740075708edabd38d8f9c9e126d435684cb /libavutil/log.c
parent4342a7f30b139935008cc002b81c3fdd7be17f36 (diff)
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. Originally committed as revision 14237 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/log.c')
-rw-r--r--libavutil/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/log.c b/libavutil/log.c
index fed0ce80a0..aadcf90de4 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -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