videoio(msmf): fix build warning
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 19 Apr 2020 19:47:32 +0000 (19:47 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 19 Apr 2020 19:47:32 +0000 (19:47 +0000)
- warning C4800: 'int': forcing value to bool 'true' or 'false'

modules/videoio/src/cap_msmf.cpp

index 1a0f2e0..b58e6be 100644 (file)
@@ -1797,7 +1797,7 @@ CvResult CV_API_CALL cv_writer_open(const char* filename, int fourcc, double fps
     {
         wrt = new WriterT();
         Size sz(width, height);
-        if (wrt && wrt->open(filename, fourcc, fps, sz, isColor))
+        if (wrt && wrt->open(filename, fourcc, fps, sz, isColor != 0))
         {
             *handle = (CvPluginWriter)wrt;
             return CV_ERROR_OK;