From f3d2f4c6c2a57a03daa824db2eb7a544ce56f81a Mon Sep 17 00:00:00 2001 From: Leo Izen Date: Tue, 12 Dec 2017 21:19:51 -0500 Subject: sd_ass: accept RFC8081 font media types IETF RFC8081 added the "font" top-level media type, including font/ttf, font/otf, font/sfnt, and also font/collection. These font formats are all supported by mpv/libass but they are not accepted as valid Matroska mime types. mpv can load them via file extension and they work as expected, so files using the new types should not trigger a warning from mpv. --- sub/sd_ass.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sub/sd_ass.c') diff --git a/sub/sd_ass.c b/sub/sd_ass.c index 8a21ea0f42..7fa7deccfa 100644 --- a/sub/sd_ass.c +++ b/sub/sd_ass.c @@ -87,6 +87,10 @@ static const char *const font_mimetypes[] = { "application/vnd.ms-opentype", "application/x-font-ttf", "application/x-font", // probably incorrect + "font/collection", + "font/otf", + "font/sfnt", + "font/ttf", NULL }; -- cgit v1.2.3