Web lists-archives.com

[MPlayer-dev-eng] [PATCH 1/2] Pass application/vnd.ms-opentype attachments to libass




Make those font attachments work with at least demux_mkv.

Fix part of ticket 2207

Signed-off-by: Alexander Strasser <eclipse7@xxxxxxx>
---
 mplayer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mplayer.c b/mplayer.c
index 6a32e88..482bf53 100644
--- 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);
         }
-- 

Attachment: pgpj4kGCj5out.pgp
Description: PGP signature

_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng