---
I was waiting to get more design comments, but here is a version with bumps and 
apichanges added.
Also removed the example that will be sent as a separate email once if the 
levell is introduced.
Cheers,
    Vittorio

 doc/APIchanges      |    4 ++++
 libavutil/log.c     |    6 +++---
 libavutil/log.h     |    4 ++++
 libavutil/version.h |    2 +-
 4 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/doc/APIchanges b/doc/APIchanges
index 1e380e9..bc1ae31 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -13,6 +13,10 @@ libavutil:     2012-10-22
 
 API changes, most recent first:
 
+2013-11-xx - xxxxxxx- - lavu 52.20.0 - log.h
+  Add AV_LOG_HINT log level to highlight the correct avconv syntax to
+  first time users.
+
 2013-11-xx - xxxxxxx- - lavu 52.19.0 - frame.h
   Add AV_FRAME_DATA_A53_CC value to the AVFrameSideDataType enum, which
   identifies ATSC A53 Part 4 Closed Captions data.
diff --git a/libavutil/log.c b/libavutil/log.c
index 7d574f6..af4bfcb 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -45,13 +45,13 @@ static int flags;
 
 #if HAVE_SETCONSOLETEXTATTRIBUTE
 #include <windows.h>
-static const uint8_t color[] = { 12, 12, 12, 14, 7, 10, 11 };
+static const uint8_t color[] = { 12, 12, 12, 14, 7, 10, 2, 11 };
 static int16_t background, attr_orig;
 static HANDLE con;
 #define set_color(x)  SetConsoleTextAttribute(con, background | color[x])
 #define reset_color() SetConsoleTextAttribute(con, attr_orig)
 #else
-static const uint8_t color[] = { 0x41, 0x41, 0x11, 0x03, 9, 0x02, 0x06 };
+static const uint8_t color[] = { 0x41, 0x41, 0x11, 0x03, 0x09, 0x02, 0x13, 
0x06};
 #define set_color(x)  fprintf(stderr, "\033[%d;3%dm", color[x] >> 4, 
color[x]&15)
 #define reset_color() fprintf(stderr, "\033[0m")
 #endif
@@ -102,7 +102,7 @@ void av_log_default_callback(void* ptr, int level, const 
char* fmt, va_list vl)
     char line[1024];
     static int is_atty;
     AVClass* avc = ptr ? *(AVClass **) ptr : NULL;
-    if (level > av_log_level)
+    if (level > av_log_level && level != AV_LOG_HINT)
         return;
     line[0] = 0;
     if (print_prefix && avc) {
diff --git a/libavutil/log.h b/libavutil/log.h
index 05d2826..9a617db 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -144,6 +144,10 @@ typedef struct AVClass {
 #define AV_LOG_DEBUG    48
 
 /**
+ * Possible help text.
+ */
+#define AV_LOG_HINT     56
+/**
  * @}
  */
 
diff --git a/libavutil/version.h b/libavutil/version.h
index fa1f53b..dad8e2f 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -37,7 +37,7 @@
  */
 
 #define LIBAVUTIL_VERSION_MAJOR 52
-#define LIBAVUTIL_VERSION_MINOR 19
+#define LIBAVUTIL_VERSION_MINOR 20
 #define LIBAVUTIL_VERSION_MICRO  0
 
 #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
-- 
1.7.9.5

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to