diff mbox series

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

Message ID 20200909060217.25794-5-rcombs@rcombs.me
State New
Headers show
Series [FFmpeg-devel,01/15] lavc/codec_desc: add MIME type to AV_CODEC_ID_TEXT
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Ridley Combs Sept. 9, 2020, 6:02 a.m. UTC
---
 libavformat/matroskaenc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

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;