diff options
author | Frédéric Brière <fbriere@fbriere.net> | 2022-02-10 21:36:34 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-03-01 02:09:46 +0000 |
commit | 779d4f99a74cce2089f0bf7dc5ed10c7a7ff00a3 (patch) | |
tree | 15a744a8531e7151a33d0cd3681f54eb41444940 /sub/sd_ass.c | |
parent | 022790a2b49e4d21cb803842cb54958cca9c732e (diff) | |
download | mpv-779d4f99a74cce2089f0bf7dc5ed10c7a7ff00a3.tar.bz2 mpv-779d4f99a74cce2089f0bf7dc5ed10c7a7ff00a3.tar.xz |
sub: add --sub-fonts-dir and --osd-fonts-dir options
These options make it possible to specify the directory that will be
passed to ass_set_fonts_dir(), akin to VLC's `--ssa-fontsdir` and
FFmpeg's `fontsdir`.
Fixes #8338
Diffstat (limited to 'sub/sd_ass.c')
-rw-r--r-- | sub/sd_ass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/sd_ass.c b/sub/sd_ass.c index ec79bda10b..0ea696eeab 100644 --- a/sub/sd_ass.c +++ b/sub/sd_ass.c @@ -206,7 +206,7 @@ static void assobjects_init(struct sd *sd) struct sd_ass_priv *ctx = sd->priv; struct mp_subtitle_opts *opts = sd->opts; - ctx->ass_library = mp_ass_init(sd->global, sd->log); + ctx->ass_library = mp_ass_init(sd->global, sd->opts->sub_style, sd->log); ass_set_extract_fonts(ctx->ass_library, opts->use_embedded_fonts); add_subtitle_fonts(sd); |