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.
This commit is contained in:
Leo Izen
2017-12-12 21:24:41 -05:00
committed by Jan Ekström
parent f3d2f4c6c2
commit 47131365a3

View File

@@ -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)
{