[FFmpeg-devel] [PATCH] Cosmetics : Add a space after the AVClass prefix to improve readability.

Jai Menon jmenon86
Thu Jun 24 20:46:47 CEST 2010


---
 libavutil/log.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/log.c b/libavutil/log.c
index 5f7034b..9b49336 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -94,10 +94,10 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
         if(avc->version >= (50<<16 | 15<<8 | 3) && avc->parent_log_context_offset){
             AVClass** parent= *(AVClass***)(((uint8_t*)ptr) + avc->parent_log_context_offset);
             if(parent && *parent){
-                snprintf(line, sizeof(line), "[%s @ %p]", (*parent)->item_name(parent), parent);
+                snprintf(line, sizeof(line), "[%s @ %p] ", (*parent)->item_name(parent), parent);
             }
         }
-        snprintf(line + strlen(line), sizeof(line) - strlen(line), "[%s @ %p]", avc->item_name(ptr), ptr);
+        snprintf(line + strlen(line), sizeof(line) - strlen(line), "[%s @ %p] ", avc->item_name(ptr), ptr);
     }
 
     vsnprintf(line + strlen(line), sizeof(line) - strlen(line), fmt, vl);
-- 
1.7.1




More information about the ffmpeg-devel mailing list