[FFmpeg-cvslog] log: Have function parameter names match between .c and .h file

Diego Biurrun git at videolan.org
Wed Feb 12 14:49:40 CET 2014


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Tue Feb 11 22:15:06 2014 +0100| [25a1ba814ad80056247fd357ec4c6911324a3f66] | committer: Diego Biurrun

log: Have function parameter names match between .c and .h file

This fixes two related Doxygen warnings.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=25a1ba814ad80056247fd357ec4c6911324a3f66
---

 libavutil/log.c |    8 ++++----
 libavutil/log.h |    5 +++--
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/libavutil/log.c b/libavutil/log.c
index 7d574f6..3cc811b 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -94,20 +94,20 @@ const char *av_default_item_name(void *ptr)
     return (*(AVClass **) ptr)->class_name;
 }
 
-void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
+void av_log_default_callback(void *avcl, int level, const char *fmt, va_list vl)
 {
     static int print_prefix = 1;
     static int count;
     static char prev[1024];
     char line[1024];
     static int is_atty;
-    AVClass* avc = ptr ? *(AVClass **) ptr : NULL;
+    AVClass* avc = avcl ? *(AVClass **) avcl : NULL;
     if (level > av_log_level)
         return;
     line[0] = 0;
     if (print_prefix && avc) {
         if (avc->parent_log_context_offset) {
-            AVClass** parent = *(AVClass ***) (((uint8_t *) ptr) +
+            AVClass** parent = *(AVClass ***) (((uint8_t *) avcl) +
                                    avc->parent_log_context_offset);
             if (parent && *parent) {
                 snprintf(line, sizeof(line), "[%s @ %p] ",
@@ -115,7 +115,7 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
             }
         }
         snprintf(line + strlen(line), sizeof(line) - strlen(line), "[%s @ %p] ",
-                 avc->item_name(ptr), ptr);
+                 avc->item_name(avcl), avcl);
     }
 
     vsnprintf(line + strlen(line), sizeof(line) - strlen(line), fmt, vl);
diff --git a/libavutil/log.h b/libavutil/log.h
index 05d2826..6d26b67 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -219,9 +219,10 @@ void av_log_set_callback(void (*callback)(void*, int, const char*, va_list));
  *        lavu_log_constants "Logging Constant".
  * @param fmt The format string (printf-compatible) that specifies how
  *        subsequent arguments are converted to output.
- * @param ap The arguments referenced by the format string.
+ * @param vl The arguments referenced by the format string.
  */
-void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl);
+void av_log_default_callback(void *avcl, int level, const char *fmt,
+                             va_list vl);
 
 /**
  * Return the context name



More information about the ffmpeg-cvslog mailing list