From 7328cdfa58c1574b618b96f252bbba33d7a6bcd2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 23 Apr 2010 08:11:53 +0000 Subject: [PATCH] Merge the 2 ANSI ESC codes. Originally committed as revision 22952 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/log.c b/libavutil/log.c index db62d70..9c13d4d 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -40,7 +40,7 @@ int av_log_level = AV_LOG_INFO; #undef fprintf static void colored_fputs(int color, const char *str){ if(isatty(2)){ - fprintf(stderr, "\033[%dm\033[3%dm", color>>4, color&15); + fprintf(stderr, "\033[%d;3%dm", color>>4, color&15); } fputs(str, stderr); if(isatty(2)){ -- 2.7.4