]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/drawtext: hide first font load warning when fontconfig is present
authorClément Bœsch <clement@stupeflix.com>
Mon, 21 Dec 2015 15:07:22 +0000 (16:07 +0100)
committerClément Bœsch <clement@stupeflix.com>
Mon, 21 Dec 2015 15:07:22 +0000 (16:07 +0100)
libavfilter/vf_drawtext.c

index beec018f46e0f5f500cddea01b8f0ed9597bc801..406ec271f0fdedb69ff37f9ce6adc8eee4d03f73 100644 (file)
@@ -372,8 +372,10 @@ static int load_font_file(AVFilterContext *ctx, const char *path, int index)
 
     err = FT_New_Face(s->library, path, index, &s->face);
     if (err) {
+#if !CONFIG_LIBFONTCONFIG
         av_log(ctx, AV_LOG_ERROR, "Could not load font \"%s\": %s\n",
                s->fontfile, FT_ERRMSG(err));
+#endif
         return AVERROR(EINVAL);
     }
     return 0;