aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Lindner <jolindner@gmx.de>2023-07-10 00:06:33 +0200
committerPeter Ross <pross@xvid.org>2023-07-12 08:38:51 +1000
commit886c1ffb5da83a239df292800d16d399bc5ab0a7 (patch)
tree3d03afddf77a8c6b68a72ce98df50d1160ebcaba
parent6a9d3f46c7fc661b86192e922ab932495d27f953 (diff)
downloadffmpeg-886c1ffb5da83a239df292800d16d399bc5ab0a7.tar.gz
libavcodec/ansi: fix ECMA-48 SGR parameter 49
As can be seen in man console_codes this parameter sets the default background color Signed-off-by: Jonas Lindner <jolindner@gmx.de>
-rw-r--r--libavcodec/ansi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ansi.c b/libavcodec/ansi.c
index 49c3770c4c..d8d32bafbd 100644
--- a/libavcodec/ansi.c
+++ b/libavcodec/ansi.c
@@ -330,7 +330,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
s->bg = index < 16 ? ansi_to_cga[index] : index;
i += 2;
} else if (m == 49) {
- s->fg = ansi_to_cga[DEFAULT_BG_COLOR];
+ s->bg = ansi_to_cga[DEFAULT_BG_COLOR];
} else {
avpriv_request_sample(avctx, "Unsupported rendition parameter");
}