Merge pull request #14036 from jveitchmichaelis:Y16_v4l_fix

This commit is contained in:
Alexander Alekhin 2019-03-12 14:38:37 +00:00
commit ea9a17ebc2

View File

@ -1803,9 +1803,11 @@ bool CvCaptureCAM_V4L::setProperty( int property_id, double _value )
if (bool(value)) {
convert_rgb = convertableToRgb();
return convert_rgb;
}else{
convert_rgb = false;
releaseFrame();
return true;
}
convert_rgb = false;
return true;
case cv::CAP_PROP_FOURCC:
{
if (palette == static_cast<__u32>(value))