Pass application/vnd.ms-opentype attachments to libass
authoral <al@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 25 Oct 2014 22:09:27 +0000 (22:09 +0000)
committeral <al@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 25 Oct 2014 22:09:27 +0000 (22:09 +0000)
Make those font attachments work with at least demux_mkv.

Fix part of ticket 2207

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@37311 b3059339-0415-0410-9bf9-f77b7e298cf2

mplayer.c

index 6a32e88..482bf53 100644 (file)
--- a/mplayer.c
+++ b/mplayer.c
@@ -3436,6 +3436,7 @@ goto_enable_cache:
             if (extract_embedded_fonts &&
                 att->name && att->type && att->data && att->data_size &&
                 (strcmp(att->type, "application/x-truetype-font") == 0 ||
+                 strcmp(att->type, "application/vnd.ms-opentype") == 0 ||
                  strcmp(att->type, "application/x-font") == 0))
                 ass_add_font(ass_library, att->name, att->data, att->data_size);
         }