diff options
author | James Almer <jamrial@gmail.com> | 2025-07-21 21:39:09 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2025-07-22 09:47:18 -0300 |
commit | cb9742af76631a1036ecf364ec3af385e2b04045 (patch) | |
tree | 8b46dfd60aa973190d4f8b66dc0035732b1bfb89 /libavcodec/ansi.c | |
parent | c6c80631868dbe96d9fe0b2a61181d970381191a (diff) | |
download | ffmpeg-cb9742af76631a1036ecf364ec3af385e2b04045.tar.gz |
avcodec: use the getters for xGA font data arrays
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/ansi.c')
-rw-r--r-- | libavcodec/ansi.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/ansi.c b/libavcodec/ansi.c index b58b72ef49..bde9edbe60 100644 --- a/libavcodec/ansi.c +++ b/libavcodec/ansi.c @@ -82,7 +82,7 @@ static av_cold int decode_init(AVCodecContext *avctx) avctx->pix_fmt = AV_PIX_FMT_PAL8; /* defaults */ - s->font = avpriv_vga16_font; + s->font = avpriv_vga16_font_get(); s->font_height = 16; s->fg = DEFAULT_FG_COLOR; s->bg = DEFAULT_BG_COLOR; @@ -217,19 +217,19 @@ static int execute_code(AVCodecContext * avctx, int c) s->args[0] = DEFAULT_SCREEN_MODE; switch(s->args[0]) { case 0: case 1: case 4: case 5: case 13: case 19: //320x200 (25 rows) - s->font = avpriv_cga_font; + s->font = avpriv_cga_font_get(); s->font_height = 8; width = 40<<3; height = 25<<3; break; case 2: case 3: //640x400 (25 rows) - s->font = avpriv_vga16_font; + s->font = avpriv_vga16_font_get(); s->font_height = 16; width = 80<<3; height = 25<<4; break; case 6: case 14: //640x200 (25 rows) - s->font = avpriv_cga_font; + s->font = avpriv_cga_font_get(); s->font_height = 8; width = 80<<3; height = 25<<3; @@ -237,13 +237,13 @@ static int execute_code(AVCodecContext * avctx, int c) case 7: //set line wrapping break; case 15: case 16: //640x350 (43 rows) - s->font = avpriv_cga_font; + s->font = avpriv_cga_font_get(); s->font_height = 8; width = 80<<3; height = 43<<3; break; case 17: case 18: //640x480 (60 rows) - s->font = avpriv_cga_font; + s->font = avpriv_cga_font_get(); s->font_height = 8; width = 80<<3; height = 60<<4; |