You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
committed by
Peter Ross
parent
6a9d3f46c7
commit
886c1ffb5d
@@ -330,7 +330,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
s->bg = index < 16 ? ansi_to_cga[index] : index;
|
s->bg = index < 16 ? ansi_to_cga[index] : index;
|
||||||
i += 2;
|
i += 2;
|
||||||
} else if (m == 49) {
|
} else if (m == 49) {
|
||||||
s->fg = ansi_to_cga[DEFAULT_BG_COLOR];
|
s->bg = ansi_to_cga[DEFAULT_BG_COLOR];
|
||||||
} else {
|
} else {
|
||||||
avpriv_request_sample(avctx, "Unsupported rendition parameter");
|
avpriv_request_sample(avctx, "Unsupported rendition parameter");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user