Merge pull request #16721 from mshabunin:fix-msmf-format

This commit is contained in:
Alexander Alekhin 2020-03-03 15:41:53 +00:00
commit 0b85d0ec68

View File

@ -498,7 +498,7 @@ public:
best = *i;
break;
}
if (i->second.isBetterThan(best.second, newType))
if (best.second.isEmpty() || i->second.isBetterThan(best.second, newType))
{
best = *i;
}