[FFmpeg-cvslog] libavcodec/ansi: fix ECMA-48 SGR parameter 49

Jonas Lindner git at videolan.org
Wed Jul 12 01:41:27 EEST 2023


ffmpeg | branch: master | Jonas Lindner <jolindner at gmx.de> | Mon Jul 10 00:06:33 2023 +0200| [886c1ffb5da83a239df292800d16d399bc5ab0a7] | committer: Peter Ross

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 at gmx.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=886c1ffb5da83a239df292800d16d399bc5ab0a7
---

 libavcodec/ansi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");
             }



More information about the ffmpeg-cvslog mailing list