aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/v4l.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/v4l.c b/src/v4l.c
index d54bbfb..32c09d9 100644
--- a/src/v4l.c
+++ b/src/v4l.c
@@ -118,7 +118,7 @@ void get_supported_resolutions(cam_t *cam)
frmsize.discrete.height,
get_max_fps_discrete(cam, &frmsize));
} else if (frmsize.type == V4L2_FRMSIZE_TYPE_STEPWISE) {
- for (i = 0; i < 4; i++) {
+ for (i = 0; i <= 4; i++) {
x = frmsize.stepwise.min_width +
i * (frmsize.stepwise.max_width -
frmsize.stepwise.min_width) / 4;

Privacy Policy