[FFmpeg-devel] [PATCH 3/9] lavc: add codec descriptors for TTF and OTF.

Nicolas George george at nsup.org
Thu Apr 17 10:17:41 CEST 2014


Signed-off-by: Nicolas George <george at nsup.org>
---
 libavcodec/codec_desc.c  |   12 ++++++++++++
 tools/missing_codec_desc |    1 -
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c
index af4be17..2513d0b 100644
--- a/libavcodec/codec_desc.c
+++ b/libavcodec/codec_desc.c
@@ -2645,6 +2645,12 @@ static const AVCodecDescriptor codec_descriptors[] = {
 
     /* other kind of codecs and pseudo-codecs */
     {
+        .id        = AV_CODEC_ID_TTF,
+        .type      = AVMEDIA_TYPE_DATA,
+        .name      = "ttf",
+        .long_name = NULL_IF_CONFIG_SMALL("TrueType font"),
+    },
+    {
         .id        = AV_CODEC_ID_BINTEXT,
         .type      = AVMEDIA_TYPE_VIDEO,
         .name      = "bintext",
@@ -2666,6 +2672,12 @@ static const AVCodecDescriptor codec_descriptors[] = {
         .props     = AV_CODEC_PROP_INTRA_ONLY,
     },
     {
+        .id        = AV_CODEC_ID_OTF,
+        .type      = AVMEDIA_TYPE_DATA,
+        .name      = "otf",
+        .long_name = NULL_IF_CONFIG_SMALL("OpenType font"),
+    },
+    {
         .id        = AV_CODEC_ID_SMPTE_KLV,
         .type      = AVMEDIA_TYPE_DATA,
         .name      = "klv",
diff --git a/tools/missing_codec_desc b/tools/missing_codec_desc
index 093d02e..e1d3d60 100755
--- a/tools/missing_codec_desc
+++ b/tools/missing_codec_desc
@@ -14,7 +14,6 @@ known_AV_CODEC_ID_NONE=1
 known_AV_CODEC_ID_FIRST_AUDIO=1
 known_AV_CODEC_ID_FIRST_SUBTITLE=1
 known_AV_CODEC_ID_FIRST_UNKNOWN=1
-known_AV_CODEC_ID_TTF=1
 known_AV_CODEC_ID_PROBE=1
 known_AV_CODEC_ID_MPEG2TS=1
 known_AV_CODEC_ID_MPEG4SYSTEMS=1
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list