Commit 886c1ffb authored by Jonas Lindner's avatar Jonas Lindner Committed by 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: 's avatarJonas Lindner <jolindner@gmx.de>
parent 6a9d3f46
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment