Skip to content
Snippets Groups Projects
Commit 5a18b215 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Merge remote-tracking branch 'qatar/master'


* qatar/master:
  log: Do not assume the TERM variable is always set

Conflicts:
	libavutil/log.c

Merged-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parents d9ac00ca 4ede1862
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,7 @@ static void check_color_terminal(void)
use_color = !getenv("NO_COLOR") && !getenv("AV_LOG_FORCE_NOCOLOR") &&
(getenv("TERM") && isatty(2) || getenv("AV_LOG_FORCE_COLOR"));
if ( getenv("AV_LOG_FORCE_256COLOR")
|| strstr(term, "256color"));
|| (term && strstr(term, "256color")));
use_color *= 256;
#else
use_color = getenv("AV_LOG_FORCE_COLOR") && !getenv("NO_COLOR") &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment