demux: mime types are case-insensitive

This one is used for demux_mf and for dmeux_mkv image attachments.
This commit is contained in:
wm4 2015-06-21 18:21:21 +02:00
parent 0316f5514e
commit dbbac7b3e1
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}
}