mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-26 21:00:21 +00:00
demux: mime types are case-insensitive
This one is used for demux_mf and for dmeux_mkv image attachments.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user