[FFmpeg-devel] [PATCH 05/15] lavf/matroskaenc: remove text/plain special-case

rcombs rcombs at rcombs.me
Wed Sep 9 09:02:07 EEST 2020


---
 libavformat/matroskaenc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 233c472b8f..d9caa3e728 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -1706,10 +1706,8 @@ static const char *get_mimetype(const AVStream *st)
         return t->value;
     if (st->codecpar->codec_id != AV_CODEC_ID_NONE) {
         const AVCodecDescriptor *desc = avcodec_descriptor_get(st->codecpar->codec_id);
-        if (desc && desc->mime_types) {
+        if (desc && desc->mime_types)
             return desc->mime_types[0];
-        } else if (st->codecpar->codec_id == AV_CODEC_ID_TEXT)
-            return "text/plain";
     }
 
     return NULL;
-- 
2.27.0



More information about the ffmpeg-devel mailing list