[FFmpeg-cvslog] avfilter/vf_subtitles: allow using embedded fonts
Oneric
git at videolan.org
Sat May 29 09:21:06 EEST 2021
ffmpeg | branch: master | Oneric <oneric at oneric.de> | Sun May 2 23:02:02 2021 +0200| [3300625c6f148455b08d641597d54b5be4c0f76a] | committer: Gyan Doshi
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3300625c6f148455b08d641597d54b5be4c0f76a
---
libavfilter/vf_subtitles.c | 1 +
1 file changed, 1 insertion(+)
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) {
More information about the ffmpeg-cvslog
mailing list