mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Merge pull request #16721 from mshabunin:fix-msmf-format
This commit is contained in:
commit
0b85d0ec68
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user