This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 3ebed8c087 avutil/log: match Windows warning yellow on a pipe
3ebed8c087 is described below
commit 3ebed8c08756f3eef00f12f6488ee2d02cacaa56
Author: Reinhard Nißl <[email protected]>
AuthorDate: Fri Oct 16 22:42:00 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Mon Oct 19 12:37:52 2026 +0000
avutil/log: match Windows warning yellow on a pipe
On Windows the console paints warnings with attribute 14 (bright yellow).
The 8-color ANSI path used for a pipe emitted 0;33. Use intensity 1 for
AV_LOG_WARNING on Windows so the piped color matches the console.
Co-authored-by: Cursor <[email protected]>
Signed-off-by: Reinhard Nißl <[email protected]>
---
libavutil/log.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/libavutil/log.c b/libavutil/log.c
index 966522b013..6e52f970fd 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -189,11 +189,17 @@ static void check_color_terminal(void)
static void ansi_fputs(int level, int tint, const char *str, int
local_use_color)
{
if (local_use_color == 1) {
+ uint32_t intensity = (color[level] >> 4) & 15;
+ uint32_t fg = color[level] & 15;
+#if defined(_WIN32)
+ /* Piped stderr is 8-color ANSI. Linux keeps 0;33m; Windows console
+ * already uses win_color 14 (bright yellow), so match that here. */
+ if (level == AV_LOG_WARNING / 8)
+ intensity = 1;
+#endif
fprintf(stderr,
"\033[%"PRIu32";3%"PRIu32"m%s\033[0m",
- (color[level] >> 4) & 15,
- color[level] & 15,
- str);
+ intensity, fg, str);
} else if (tint && use_color == 256) {
fprintf(stderr,
"\033[48;5;%"PRIu32"m\033[38;5;%dm%s\033[0m",
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]