From dbbac7b3e18495faf137b3e7546676f947b48983 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 21 Jun 2015 18:21:21 +0200 Subject: demux: mime types are case-insensitive This one is used for demux_mf and for dmeux_mkv image attachments. --- demux/codec_tags.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demux/codec_tags.c b/demux/codec_tags.c index 0b014276a5..c7b48f6038 100644 --- a/demux/codec_tags.c +++ b/demux/codec_tags.c @@ -108,7 +108,7 @@ const char *mp_map_mimetype_to_video_codec(const char *mimetype) { if (mimetype) { for (int n = 0; mimetype_to_codec[n][0]; n++) { - if (strcmp(mimetype_to_codec[n][0], mimetype) == 0) + if (strcasecmp(mimetype_to_codec[n][0], mimetype) == 0) return mimetype_to_codec[n][1]; } } -- cgit v1.2.3