]> git.sesse.net Git - ffmpeg/commitdiff
lavf/matroska: add "binary" pseudo-MIME type.
authorNicolas George <george@nsup.org>
Wed, 16 Apr 2014 17:39:41 +0000 (19:39 +0200)
committerNicolas George <george@nsup.org>
Tue, 29 Apr 2014 11:25:59 +0000 (13:25 +0200)
Avoid long scan and "Could not find codec parameters for stream"
error when an attachment has this type.

libavformat/matroska.c

index 77a88a8756c0a080336cd175ebf466024451c12d..e8e99967db9bc539c0ac62e446280533cc23b284 100644 (file)
@@ -113,6 +113,7 @@ const CodecMime ff_mkv_mime_tags[] = {
     {"application/x-truetype-font", AV_CODEC_ID_TTF},
     {"application/x-font"         , AV_CODEC_ID_TTF},
     {"application/vnd.ms-opentype", AV_CODEC_ID_OTF},
+    {"binary"                     , AV_CODEC_ID_BIN_DATA},
 
     {""                           , AV_CODEC_ID_NONE}
 };