[FFmpeg-devel] [PATCH] mkv: add new opentype mimetype

Nicolas George nicolas.george at normalesup.org
Thu Jun 21 10:31:52 CEST 2012


Le quartidi 4 messidor, an CCXX, Hendrik Leppkes a écrit :
> this patch properly identifys attached fonts in MKV files using the new
> OpenType mimetype as written by recent mkvmerge versions.

>      {"application/x-truetype-font", CODEC_ID_TTF},
>      {"application/x-font"         , CODEC_ID_TTF},
> +    {"application/vnd.ms-opentype", CODEC_ID_TTF},

Please note that OpenType and TrueType are really two different formats. A
quick check shows that mkvmerge actually distinguishes the types. On the
other hand, any font handling library would probe the format anyway.

I do not know which one would be better: state that CODEC_ID_TTF really
means CODEC_ID_FONT for any font file format, or create a new
CODEC_ID_OPENTYPE. Both have pros and cons. On the long run, the second is
probably slightly better.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120621/4705f63a/attachment.asc>


More information about the ffmpeg-devel mailing list