summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOneric <oneric@oneric.de>2021-05-02 23:02:02 +0200
committerGyan Doshi <ffmpeg@gyani.pro>2021-05-29 11:32:23 +0530
commit3300625c6f148455b08d641597d54b5be4c0f76a (patch)
tree6164ba5941ca640d3878e3dd36d9b24162bfeab1
parentebedd26eefe2ff4bbf5a358907c4e8e4b0d62eae (diff)
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.c1
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) {