]> git.sesse.net Git - ffmpeg/commitdiff
Print the address of the AVCodecContext in av_log().
authorAlexander Strange <astrange@ithinksw.com>
Tue, 15 Jul 2008 17:17:35 +0000 (17:17 +0000)
committerAlexander Strange <astrange@ithinksw.com>
Tue, 15 Jul 2008 17:17:35 +0000 (17:17 +0000)
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

index fed0ce80a0ac37806dbfa98dccf042da80ce4dcb..aadcf90de44d55727646c2ff69c96375999fd0e1 100644 (file)
@@ -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