diff options
author | wm4 <wm4@nowhere> | 2016-04-30 14:26:08 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-04-30 14:26:08 +0200 |
commit | 0826b78bc59f7b16e158c9545c76b65c23719e0a (patch) | |
tree | 1a5db0d9188eb3b1abaeaaaa59ca254e85069233 /sub | |
parent | 3a8058658d3c0fadc607460d0411bbdea55a8edb (diff) | |
download | mpv-0826b78bc59f7b16e158c9545c76b65c23719e0a.tar.bz2 mpv-0826b78bc59f7b16e158c9545c76b65c23719e0a.tar.xz |
sd_ass: minor consistency adjustment
Diffstat (limited to 'sub')
-rw-r--r-- | sub/sd_ass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sub/sd_ass.c b/sub/sd_ass.c index e52795f7eb..ebe04a29aa 100644 --- a/sub/sd_ass.c +++ b/sub/sd_ass.c @@ -117,11 +117,11 @@ static void add_subtitle_fonts(struct sd *sd) { struct sd_ass_priv *ctx = sd->priv; struct MPOpts *opts = sd->opts; - if (!opts->ass_enabled || !sd->attachments) + if (!opts->ass_enabled || !opts->use_embedded_fonts || !sd->attachments) return; for (int i = 0; i < sd->attachments->num_entries; i++) { struct demux_attachment *f = &sd->attachments->entries[i]; - if (opts->use_embedded_fonts && attachment_is_font(sd->log, f)) + if (attachment_is_font(sd->log, f)) ass_add_font(ctx->ass_library, f->name, f->data, f->data_size); } } |