1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Fixed MSMF video capture initialization

Applied in PR3251 to 2.4 branch.
This commit is contained in:
Artur Wieczorek
2014-09-25 11:49:31 +02:00
parent 25cf51637d
commit 7c00b17085
+1 -1
View File
@@ -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() )