aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/tmv.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2025-07-21 21:39:09 -0300
committerJames Almer <jamrial@gmail.com>2025-07-22 09:47:18 -0300
commitcb9742af76631a1036ecf364ec3af385e2b04045 (patch)
tree8b46dfd60aa973190d4f8b66dc0035732b1bfb89 /libavcodec/tmv.c
parentc6c80631868dbe96d9fe0b2a61181d970381191a (diff)
downloadffmpeg-cb9742af76631a1036ecf364ec3af385e2b04045.tar.gz
avcodec: use the getters for xGA font data arrays
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/tmv.c')
-rw-r--r--libavcodec/tmv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/tmv.c b/libavcodec/tmv.c
index ebd0e0b0bc..0eedc258c3 100644
--- a/libavcodec/tmv.c
+++ b/libavcodec/tmv.c
@@ -40,6 +40,7 @@ static int tmv_decode_frame(AVCodecContext *avctx, AVFrame *frame,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *src = avpkt->data;
+ const uint8_t *cga_font = avpriv_cga_font_get();
uint8_t *dst;
unsigned char_cols = avctx->width >> 3;
unsigned char_rows = avctx->height >> 3;
@@ -67,7 +68,7 @@ static int tmv_decode_frame(AVCodecContext *avctx, AVFrame *frame,
bg = *src >> 4;
fg = *src++ & 0xF;
ff_draw_pc_font(dst + x * 8, frame->linesize[0],
- avpriv_cga_font, 8, c, fg, bg);
+ cga_font, 8, c, fg, bg);
}
dst += frame->linesize[0] * 8;
}