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>
pull/389/head
Jonas Lindner 2 years ago committed by Peter Ross
parent 6a9d3f46c7
commit 886c1ffb5d
  1. 2
      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");
}

Loading…
Cancel
Save