avutil/log: add support for forced ANSI colors on win32
authorMarton Balint <cus@passwd.hu>
Tue, 28 Jan 2020 23:30:06 +0000 (00:30 +0100)
committerMarton Balint <cus@passwd.hu>
Sun, 9 Feb 2020 19:31:44 +0000 (20:31 +0100)
commit31acaa1ec61381ac6a6c38908fa860d62744ee62
tree333099f82bd4c14c6eb893fbbac10e214c63842e
parent1b34c0690f0c159ea528c2ccd6c0811e450896b6
avutil/log: add support for forced ANSI colors on win32

To make behavior the same as non-win32 code when the standard error is
redirected. Also restructure the code a bit.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavutil/log.c