From 10d2bcc8a2d1854b1df35d71d72ef05f2896210f Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Sun, 19 Apr 2020 19:47:32 +0000 Subject: [PATCH] videoio(msmf): fix build warning - warning C4800: 'int': forcing value to bool 'true' or 'false' --- modules/videoio/src/cap_msmf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/videoio/src/cap_msmf.cpp b/modules/videoio/src/cap_msmf.cpp index 1a0f2e0..b58e6be 100644 --- a/modules/videoio/src/cap_msmf.cpp +++ b/modules/videoio/src/cap_msmf.cpp @@ -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; -- 2.7.4