diff --git a/modules/videoio/src/cap_msmf.cpp b/modules/videoio/src/cap_msmf.cpp index 745642f2940d25a347c1cb8e412afac0fe092ce9..c10a7c045e372ee24d59b08d5f440326b400f95e 100644 --- a/modules/videoio/src/cap_msmf.cpp +++ b/modules/videoio/src/cap_msmf.cpp @@ -2580,7 +2580,7 @@ bool videoDevice::setupDevice(unsigned int id) bool videoDevice::setupDevice(unsigned int w, unsigned int h, unsigned int idealFramerate) { - unsigned int id = findType(w * h, idealFramerate); + int id = findType(w * h, idealFramerate); if( id < 0 ) return false;