1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

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

This commit is contained in:
Alexander Alekhin
2020-03-03 15:41:53 +00:00
+1 -1
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;
}