提交 7c00b170 编写于 作者: A Artur Wieczorek

Fixed MSMF video capture initialization

Applied in PR3251 to 2.4 branch.
上级 25cf5163
......@@ -2459,7 +2459,7 @@ int videoDevice::findType(unsigned int size, unsigned int frameRate)
fmt = vd_CaptureFormats.find(size);
if( fmt != vd_CaptureFormats.end() )
FRM = fmt->second;
else
else if( !vd_CaptureFormats.empty() )
FRM = vd_CaptureFormats.rbegin()->second;
if( FRM.empty() )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册