Commit 8ddfa5ae authored by Diego Biurrun's avatar Diego Biurrun

vf_drawtext: Drop wrong void* cast

libavfilter/vf_drawtext.c:844:49: warning: ISO C forbids conversion of function pointer to object pointer type [-Wpedantic]
parent fcbdd605
...@@ -840,7 +840,7 @@ static int draw_glyphs(DrawTextContext *s, AVFrame *frame, ...@@ -840,7 +840,7 @@ static int draw_glyphs(DrawTextContext *s, AVFrame *frame,
continue; continue;
dummy.code = code; dummy.code = code;
glyph = av_tree_find(s->glyphs, &dummy, (void *)glyph_cmp, NULL); glyph = av_tree_find(s->glyphs, &dummy, glyph_cmp, NULL);
if (glyph->bitmap.pixel_mode != FT_PIXEL_MODE_MONO && if (glyph->bitmap.pixel_mode != FT_PIXEL_MODE_MONO &&
glyph->bitmap.pixel_mode != FT_PIXEL_MODE_GRAY) glyph->bitmap.pixel_mode != FT_PIXEL_MODE_GRAY)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment