[FFmpeg-devel] [PATCH] [matroska] add OTF support for attachments
Sébastien Brochet
blinkseb at xboxmediacenter.com
Sun Sep 9 17:58:06 CEST 2012
Hi,
This patch adds support for OTF attachments inside matroska containers.
Regards,
Sébastien
-------------- next part --------------
From 0ca2f3aaabba51a074cf3d5cf4543a45732fe7ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Brochet?= <blinkseb at xbmc.org>
Date: Sun, 9 Sep 2012 11:00:27 +0200
Subject: [PATCH] [matroska] add OTF support for attachments
To: ffmpeg-devel at ffmpeg.org
---
libavcodec/avcodec.h | 1 +
libavcodec/old_codec_ids.h | 1 +
libavformat/matroska.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 199dd3b..ddf785e 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -455,6 +455,7 @@ enum AVCodecID {
AV_CODEC_ID_BINTEXT = MKBETAG('B','T','X','T'),
AV_CODEC_ID_XBIN = MKBETAG('X','B','I','N'),
AV_CODEC_ID_IDF = MKBETAG( 0 ,'I','D','F'),
+ AV_CODEC_ID_OTF = MKBETAG( 0 ,'O','T','F'),
AV_CODEC_ID_PROBE = 0x19000, ///< codec_id is not known (like AV_CODEC_ID_NONE) but lavf should attempt to identify it
diff --git a/libavcodec/old_codec_ids.h b/libavcodec/old_codec_ids.h
index c0ac951..ded4cc7 100644
--- a/libavcodec/old_codec_ids.h
+++ b/libavcodec/old_codec_ids.h
@@ -385,6 +385,7 @@
CODEC_ID_BINTEXT = MKBETAG('B','T','X','T'),
CODEC_ID_XBIN = MKBETAG('X','B','I','N'),
CODEC_ID_IDF = MKBETAG( 0 ,'I','D','F'),
+ CODEC_ID_OTF = MKBETAG( 0 ,'O','T','F'),
CODEC_ID_PROBE = 0x19000, ///< codec_id is not known (like CODEC_ID_NONE) but lavf should attempt to identify it
diff --git a/libavformat/matroska.c b/libavformat/matroska.c
index b016491..e13acff 100644
--- a/libavformat/matroska.c
+++ b/libavformat/matroska.c
@@ -93,6 +93,7 @@ const CodecMime ff_mkv_mime_tags[] = {
{"image/tiff" , AV_CODEC_ID_TIFF},
{"application/x-truetype-font", AV_CODEC_ID_TTF},
{"application/x-font" , AV_CODEC_ID_TTF},
+ {"application/vnd.ms-opentype", AV_CODEC_ID_OTF},
{"" , AV_CODEC_ID_NONE}
};
--
1.7.11.msysgit.0
More information about the ffmpeg-devel
mailing list