Commit 16d20fe4 authored by Ricardo Ribalda Delgado's avatar Ricardo Ribalda Delgado Committed by Rémi Denis-Courmont

v4l2: Fix SetupFormat for CONTINUOUS framesize

One of the bounds of the loop were wrong, ending up in testing
formats that were not supported by the hardware.
Signed-off-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit 4372fe4df714fccb15eeb7e0baeae74fb97edaee)
parent 41d806c5
......@@ -508,7 +508,7 @@ int SetupFormat (vlc_object_t *obj, int fd, uint32_t fourcc,
width <= fse.stepwise.max_width;
width += fse.stepwise.step_width)
for (uint32_t height = fse.stepwise.min_height;
height <= fse.stepwise.max_width;
height <= fse.stepwise.max_height;
height += fse.stepwise.step_height)
{
struct v4l2_fract cur_it;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment