[FFmpeg-devel] [PATCH] Add Win32 check for FFMPEG_FORCE_NOCOLOR
Daniel Verkamp
daniel
Fri Dec 31 21:35:55 CET 2010
Hi,
Currently the Win32 path of libavutil/log.c only checks the NO_COLOR
environment variable; a check for the recently-added
FFMPEG_FORCE_NOCOLOR is missing.
This fixes issue 2461.
Thanks,
-- Daniel Verkamp
-------------- next part --------------
Index: libavutil/log.c
===================================================================
--- libavutil/log.c (revision 26178)
+++ libavutil/log.c (working copy)
@@ -55,7 +55,7 @@
#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-devel
mailing list