summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-21 18:21:21 +0200
committerwm4 <wm4@nowhere>2015-06-21 18:21:21 +0200
commitdbbac7b3e18495faf137b3e7546676f947b48983 (patch)
tree404647f6beef0ab1467bc7d4c5127052ef41e07d /demux
parent0316f5514ec47530844eb1f680457417f93671d7 (diff)
downloadmpv-dbbac7b3e18495faf137b3e7546676f947b48983.tar.bz2
mpv-dbbac7b3e18495faf137b3e7546676f947b48983.tar.xz
demux: mime types are case-insensitive
This one is used for demux_mf and for dmeux_mkv image attachments.
Diffstat (limited to 'demux')
-rw-r--r--demux/codec_tags.c2
1 files changed, 1 insertions, 1 deletions
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];
}
}