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>
This commit is contained in:
Jonas Lindner 2023-07-10 00:06:33 +02:00 committed by Peter Ross
parent 6a9d3f46c7
commit 886c1ffb5d
1 changed files with 1 additions and 1 deletions

View File

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