mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 04:12:52 +08:00
MSMF: fixed issue with camera format selection
This commit is contained in:
parent
4d0f13544d
commit
219ef95dd8
@ -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