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.
pull/362/head
Oneric 4 years ago committed by Gyan Doshi
parent ebedd26eef
commit 3300625c6f
  1. 1
      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_message_cb(ass->library, ass_log, ctx);
ass_set_fonts_dir(ass->library, ass->fontsdir); ass_set_fonts_dir(ass->library, ass->fontsdir);
ass_set_extract_fonts(ass->library, 1);
ass->renderer = ass_renderer_init(ass->library); ass->renderer = ass_renderer_init(ass->library);
if (!ass->renderer) { if (!ass->renderer) {

Loading…
Cancel
Save