浏览代码

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: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
Ricardo Ribalda Delgado 10 年之前
父节点
当前提交
4372fe4df7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/access/v4l2/video.c

+ 1 - 1
modules/access/v4l2/video.c

@@ -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;