diff options
author | Oneric <oneric@oneric.de> | 2021-05-02 23:02:02 +0200 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2021-05-29 11:32:23 +0530 |
commit | 3300625c6f148455b08d641597d54b5be4c0f76a (patch) | |
tree | 6164ba5941ca640d3878e3dd36d9b24162bfeab1 | |
parent | ebedd26eefe2ff4bbf5a358907c4e8e4b0d62eae (diff) | |
download | ffmpeg-3300625c6f148455b08d641597d54b5be4c0f76a.tar.gz |
avfilter/vf_subtitles: allow using embedded fonts
ASS subtitles can have encoded fonts embedded into the subtitle file
itself. Allow libass to load those, to render subs as intended.
-rw-r--r-- | libavfilter/vf_subtitles.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index 493eb5f424..ab32e1b7f3 100644 --- a/libavfilter/vf_subtitles.c +++ b/libavfilter/vf_subtitles.c @@ -111,6 +111,7 @@ static av_cold int init(AVFilterContext *ctx) ass_set_message_cb(ass->library, ass_log, ctx); ass_set_fonts_dir(ass->library, ass->fontsdir); + ass_set_extract_fonts(ass->library, 1); ass->renderer = ass_renderer_init(ass->library); if (!ass->renderer) { |