summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_drawtext.c
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2015-12-21 16:07:22 +0100
committerClément Bœsch <clement@stupeflix.com>2015-12-21 16:07:22 +0100
commit1d6308dbc664d6108a0acc35e525c93c7ee4defa (patch)
tree19108f8cafa5a6f081764178b56f9e9e32bccfcd /libavfilter/vf_drawtext.c
parent4cb26c3c354e3dc0adcd5d69a4c1bcf1246d15d9 (diff)
downloadffmpeg-streaming-1d6308dbc664d6108a0acc35e525c93c7ee4defa.zip
ffmpeg-streaming-1d6308dbc664d6108a0acc35e525c93c7ee4defa.tar.gz
lavfi/drawtext: hide first font load warning when fontconfig is present
Diffstat (limited to 'libavfilter/vf_drawtext.c')
-rw-r--r--libavfilter/vf_drawtext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index beec018..406ec27 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -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;
OpenPOWER on IntegriCloud