mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 13:13:26 +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;
|
best = *i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i->second.isBetterThan(best.second, newType))
|
if (best.second.isEmpty() || i->second.isBetterThan(best.second, newType))
|
||||||
{
|
{
|
||||||
best = *i;
|
best = *i;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user