From b6a72826dd822ca50e84f1e636c540bb694979ac Mon Sep 17 00:00:00 2001 From: Vasiliy Sorokin Date: Wed, 19 Dec 2018 15:39:03 -0800 Subject: [PATCH] videio: Fix new frame size appling in v4l. --- modules/videoio/src/cap_v4l.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/videoio/src/cap_v4l.cpp b/modules/videoio/src/cap_v4l.cpp index db8569359e..f400ffd4f0 100644 --- a/modules/videoio/src/cap_v4l.cpp +++ b/modules/videoio/src/cap_v4l.cpp @@ -1757,7 +1757,7 @@ bool CvCaptureCAM_V4L::icvSetFrameSize(int _width, int _height) if (_width > 0) width_set = _width; - if (height > 0) + if (_height > 0) height_set = _height; /* two subsequent calls setting WIDTH and HEIGHT will change