[FFmpeg-cvslog] lavfi/drawtext: hide first font load warning when fontconfig is present
Clément Bœsch
git at videolan.org
Mon Dec 21 16:10:39 CET 2015
ffmpeg | branch: master | Clément Bœsch <clement at stupeflix.com> | Mon Dec 21 16:07:22 2015 +0100| [1d6308dbc664d6108a0acc35e525c93c7ee4defa] | committer: Clément Bœsch
lavfi/drawtext: hide first font load warning when fontconfig is present
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1d6308dbc664d6108a0acc35e525c93c7ee4defa
---
libavfilter/vf_drawtext.c | 2 ++
1 file changed, 2 insertions(+)
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;
More information about the ffmpeg-cvslog
mailing list