History

libavcodec/ansi: fix ECMA-48 SGR parameter 49

As can be seen in man console_codes this parameter sets the default background color

Jonas Lindner committed 3 years ago

Commit 886c1ff1 parent 6a9d3f41 file · +1 −1Browse files

Unified · Split

libavcodec/ansi.c+1−1
@@ -330,7 +330,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 329 unmodified lines
330330 s->bg = index < 16 ? ansi_to_cga[index] : index;
331331 i += 2;
332332 } else if (m == 49) {
333− s->fg = ansi_to_cga[DEFAULT_BG_COLOR];
333+ s->bg = ansi_to_cga[DEFAULT_BG_COLOR];
334334 } else {
335335 avpriv_request_sample(avctx, "Unsupported rendition parameter");
336336 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t