From b1e12f99a2008f970480f2b5137a942b5192cfc3 Mon Sep 17 00:00:00 2001 From: Alexander Strange Date: Tue, 15 Jul 2008 17:17:35 +0000 Subject: [PATCH] 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 --- libavutil/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/log.c b/libavutil/log.c index fed0ce8..aadcf90 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 -- 2.7.4