Skip to content

Commit 8b1b126

Browse files
committed
Merge pull request opencv#9892 from terfendail:v4l_custom
2 parents 5384d2f + ad051cd commit 8b1b126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/videoio/src/cap_v4l.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,7 @@ static double icvGetPropertyCAM_V4L (const CvCaptureCAM_V4L* capture,
16361636
case CV_CAP_PROP_MODE:
16371637
return capture->palette;
16381638
case CV_CAP_PROP_FORMAT:
1639-
return CV_MAKETYPE(CV_8U, capture->frame.nChannels);
1639+
return CV_MAKETYPE(IPL2CV_DEPTH(capture->frame.depth), capture->frame.nChannels);
16401640
case CV_CAP_PROP_CONVERT_RGB:
16411641
return capture->convert_rgb;
16421642
}

0 commit comments

Comments
 (0)