From 47131365a323914d667ba23d50474717f88cd81c Mon Sep 17 00:00:00 2001 From: Leo Izen Date: Tue, 12 Dec 2017 21:24:41 -0500 Subject: 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. --- sub/sd_ass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3