mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
lavfi/drawtext: hide first font load warning when fontconfig is present
This commit is contained in:
parent
4cb26c3c35
commit
1d6308dbc6
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue