[FFmpeg-devel] [PATCH] avfilter/vf_subtitles: Since mkvmerge 19 has fonts types from RFC 8081 and mkvmerge 58 on windows use new file/magic library, add more mime types for fonts

SomeRGuy wwakabot at gmail.com
Sun Oct 3 17:59:54 EEST 2021


Signed-off-by: SomeRGuy <wwakabot at gmail.com>
---
 libavfilter/vf_subtitles.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c
index f08a7fba9d..4168234e9e 100644
--- a/libavfilter/vf_subtitles.c
+++ b/libavfilter/vf_subtitles.c
@@ -270,9 +270,16 @@ static const AVOption subtitles_options[] = {
 };
 
 static const char * const font_mimetypes[] = {
+    "font/ttf",
+    "font/otf",
+    "font/sfnt",
+    "font/woff",
+    "font/woff2",
+    "application/font-sfnt",
+    "application/font-woff",
+    "application/x-font-ttf",
     "application/x-truetype-font",
     "application/vnd.ms-opentype",
-    "application/x-font-ttf",
     NULL
 };
 
-- 
2.30.2.windows.1



More information about the ffmpeg-devel mailing list