[FFmpeg-cvslog] r26186 - trunk/libavutil/log.c
daniel
subversion
Sat Jan 1 21:08:15 CET 2011
Author: daniel
Date: Sat Jan 1 21:08:15 2011
New Revision: 26186
Log:
Recognize FFMPEG_FORCE_NOCOLOR environment variable on Win32
Fixes issue 2461
Modified:
trunk/libavutil/log.c
Modified: trunk/libavutil/log.c
==============================================================================
--- trunk/libavutil/log.c Sat Jan 1 20:45:08 2011 (r26185)
+++ trunk/libavutil/log.c Sat Jan 1 21:08:15 2011 (r26186)
@@ -55,7 +55,7 @@ static void colored_fputs(int level, con
#if defined(_WIN32) && !defined(__MINGW32CE__)
CONSOLE_SCREEN_BUFFER_INFO con_info;
con = GetStdHandle(STD_ERROR_HANDLE);
- use_color = (con != INVALID_HANDLE_VALUE) && !getenv("NO_COLOR");
+ use_color = (con != INVALID_HANDLE_VALUE) && !getenv("NO_COLOR") && !getenv("FFMPEG_FORCE_NOCOLOR");
if (use_color) {
GetConsoleScreenBufferInfo(con, &con_info);
attr_orig = con_info.wAttributes;
More information about the ffmpeg-cvslog
mailing list