summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Izen <leo.izen@gmail.com>2017-12-12 21:24:41 -0500
committerJan Ekström <jeebjp@gmail.com>2017-12-13 21:00:22 +0200
commit47131365a323914d667ba23d50474717f88cd81c (patch)
treea4dfae75bd7cc2213b44b7757b0c066b9c33a1e1
parentf3d2f4c6c2a57a03daa824db2eb7a544ce56f81a (diff)
downloadmpv-47131365a323914d667ba23d50474717f88cd81c.tar.bz2
mpv-47131365a323914d667ba23d50474717f88cd81c.tar.xz
sd_ass: accept otc as fallback OpenType collection file extension
The OpenType Font File specification recommends that "Collection fonts that use CFF or CFF2 outlines should have an .OTC extension." mpv should accept .otc as a fallback extension for font detection should the mimetype detection fail.
-rw-r--r--sub/sd_ass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/sd_ass.c b/sub/sd_ass.c
index 7fa7deccfa..4bc9e15f8a 100644
--- a/sub/sd_ass.c
+++ b/sub/sd_ass.c
@@ -94,7 +94,7 @@ static const char *const font_mimetypes[] = {
NULL
};
-static const char *const font_exts[] = {".ttf", ".ttc", ".otf", NULL};
+static const char *const font_exts[] = {".ttf", ".ttc", ".otf", ".otc", NULL};
static bool attachment_is_font(struct mp_log *log, struct demux_attachment *f)
{