Commit a881f0a9ad for ffmpeg
commit a881f0a9addd3d104b87d4f6b58b111b1d0cfd28
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Sat Oct 24 15:51:53 2026 +0200
ffplay: only compile bprint_styles() with libass
Fixes warning
diff --git a/fftools/ffplay_list.c b/fftools/ffplay_list.c
index 5085396d23..1d9f042eef 100644
--- a/fftools/ffplay_list.c
+++ b/fftools/ffplay_list.c
@@ -328,6 +328,7 @@ static void bprint_ring(AVBPrint *script, int cx, int cy, int r)
#define HOVER_COLOR 0xCD444444
#define POPUP_COLOR 0xDF000000
+#if CONFIG_LIBASS
static void bprint_styles(AVBPrint *script, const ListLayout *l)
{
av_bprintf(script,
@@ -349,6 +350,7 @@ static void bprint_styles(AVBPrint *script, const ListLayout *l)
l->font * 4 / 5, l->font / 16 + 1, l->font * 4 / 5, l->font / 16 + 1, l->font, l->font, l->font / 16 + 1,
l->font, l->font, l->font / 16 + 1, l->font * 4 / 5, l->font / 16 + 1);
}
+#endif
static void bprint_header_strip(const ListView *lv, AVBPrint *script, const ListLayout *l)
{