Fixed case sensitivty issue in FfmpegDecoderFactory::CanHandle().

This commit is contained in:
casey langen 2020-05-24 10:42:28 -07:00
parent 9ff959536d
commit aefb02ba3c

View File

@ -139,14 +139,14 @@ class FfmpegDecoderFactory : public musik::core::sdk::IDecoderFactory {
std::string str(type);
std::transform(str.begin(), str.end(), str.begin(), tolower);
auto it = typeToCodecId.find(type);
auto it = typeToCodecId.find(str);
if (it != typeToCodecId.end()) {
if (supported.find(it->second) != supported.end()) {
return true;
}
}
if (supportedTypesWithoutCodec.find(type) != supportedTypesWithoutCodec.end()) {
if (supportedTypesWithoutCodec.find(str) != supportedTypesWithoutCodec.end()) {
return true;
}