mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 14:06:35 +08:00
videoio(msmf): fix build warning
- warning C4800: 'int': forcing value to bool 'true' or 'false'
This commit is contained in:
parent
2cef100303
commit
10d2bcc8a2
@ -1797,7 +1797,7 @@ CvResult CV_API_CALL cv_writer_open(const char* filename, int fourcc, double fps
|
|||||||
{
|
{
|
||||||
wrt = new WriterT();
|
wrt = new WriterT();
|
||||||
Size sz(width, height);
|
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;
|
*handle = (CvPluginWriter)wrt;
|
||||||
return CV_ERROR_OK;
|
return CV_ERROR_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user