Переглянути джерело

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;