You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavfi/drawtext: hide first font load warning when fontconfig is present
This commit is contained in:
@@ -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);
|
err = FT_New_Face(s->library, path, index, &s->face);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
#if !CONFIG_LIBFONTCONFIG
|
||||||
av_log(ctx, AV_LOG_ERROR, "Could not load font \"%s\": %s\n",
|
av_log(ctx, AV_LOG_ERROR, "Could not load font \"%s\": %s\n",
|
||||||
s->fontfile, FT_ERRMSG(err));
|
s->fontfile, FT_ERRMSG(err));
|
||||||
|
#endif
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user