]> git.sesse.net Git - ffmpeg/commitdiff
Merge the 2 ANSI ESC codes.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Apr 2010 08:11:53 +0000 (08:11 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Apr 2010 08:11:53 +0000 (08:11 +0000)
Originally committed as revision 22952 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/log.c

index db62d70e317790da14e533299133c171719864c0..9c13d4d1a4598769f279b9b53f91d68bd81fec24 100644 (file)
@@ -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)){