summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-06 23:28:57 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-06 23:28:57 +0100
commitd6838309fe098fe2bb14cb5138ceab25bfbd6981 (patch)
treed074c631b7b2b3c17627d965d5d132e0608db6f5 /libavutil
parent2c21e2ee4c47096011a07be2d30eead8359b0f32 (diff)
avutil/log: skip setting color for default (AV_LOG_INFO) level
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavutil/log.c b/libavutil/log.c
index 6cc4d97f87..0eb09b213d 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -127,19 +127,19 @@ static void colored_fputs(int level, const char *str)
}
#if HAVE_SETCONSOLETEXTATTRIBUTE
- if (use_color)
+ if (use_color && level != AV_LOG_INFO/8)
SetConsoleTextAttribute(con, background | color[level]);
fputs(str, stderr);
- if (use_color)
+ if (use_color && level != AV_LOG_INFO/8)
SetConsoleTextAttribute(con, attr_orig);
#else
- if (use_color == 1) {
+ if (use_color == 1 && level != AV_LOG_INFO/8) {
fprintf(stderr,
"\033[%d;3%dm%s\033[0m",
(color[level] >> 4) & 15,
color[level] & 15,
str);
- } else if (use_color == 256) {
+ } else if (use_color == 256 && level != AV_LOG_INFO/8) {
fprintf(stderr,
"\033[48;5;%dm\033[38;5;%dm%s\033[0m",
(color[level] >> 16) & 0xff,