[FFmpeg-cvslog] log: fix compilation failure on mingw due to reference to undefined set_color256
Michael Niedermayer
git at videolan.org
Sat Jul 7 12:59:32 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jul 7 12:54:03 2012 +0200| [50bfd547b9565bda7c282d280884ed0fd4e0fe9d] | committer: Michael Niedermayer
log: fix compilation failure on mingw due to reference to undefined set_color256
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=50bfd547b9565bda7c282d280884ed0fd4e0fe9d
---
libavutil/log.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/log.c b/libavutil/log.c
index a637e8e..53c756b 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -65,6 +65,7 @@ static const uint8_t color[16 + AV_CLASS_CATEGORY_NB] = {
static int16_t background, attr_orig;
static HANDLE con;
#define set_color(x) SetConsoleTextAttribute(con, background | color[x])
+#define set_256color set_color
#define reset_color() SetConsoleTextAttribute(con, attr_orig)
#else
More information about the ffmpeg-cvslog
mailing list