mirror of https://github.com/mpv-player/mpv
demux: mime types are case-insensitive
This one is used for demux_mf and for dmeux_mkv image attachments.
This commit is contained in:
parent
0316f5514e
commit
dbbac7b3e1
|
@ -108,7 +108,7 @@ const char *mp_map_mimetype_to_video_codec(const char *mimetype)
|
||||||
{
|
{
|
||||||
if (mimetype) {
|
if (mimetype) {
|
||||||
for (int n = 0; mimetype_to_codec[n][0]; n++) {
|
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];
|
return mimetype_to_codec[n][1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue