This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/6.1 in repository ffmpeg.
commit 3d14e11f13aa2b8e36693ddeda45f8b7658926db Author: Michael Niedermayer <[email protected]> AuthorDate: Sun May 17 22:37:51 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Jun 14 19:38:55 2026 +0200 avfilter/vf_drawtext: always check pixel_mode == FT_PIXEL_MODE_MONO The code as written can add such glyphs in the cache so we need to check glyphs from the cache too. This should be the most robust and simple solution Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit c8c4e2d2a569f536db876c68246b701680f563ab) Signed-off-by: Michael Niedermayer <[email protected]> --- libavfilter/vf_drawtext.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index c7997fb1e6..e0f0bf034d 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -839,11 +839,11 @@ static int load_glyph(AVFilterContext *ctx, Glyph **glyph_ptr, uint32_t code, in goto error; } glyph->bglyph[idx] = (FT_BitmapGlyph)tmp_glyph; - if (glyph->bglyph[idx]->bitmap.pixel_mode == FT_PIXEL_MODE_MONO) { - av_log(ctx, AV_LOG_ERROR, "Monocromatic (1bpp) fonts are not supported.\n"); - ret = AVERROR(EINVAL); - goto error; - } + } + if (glyph->bglyph[idx]->bitmap.pixel_mode == FT_PIXEL_MODE_MONO) { + av_log(ctx, AV_LOG_ERROR, "Monocromatic (1bpp) fonts are not supported.\n"); + ret = AVERROR(EINVAL); + goto error; } if (s->borderw && !glyph->border_bglyph[idx]) { FT_Glyph tmp_glyph = glyph->border_glyph; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
