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

pull/15765/head
Alexander Alekhin 5 years ago
commit 0b85d0ec68
  1. 2
      modules/videoio/src/cap_msmf.cpp

@ -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…
Cancel
Save