vlc/vlc-2.2 | branch: master | Ricardo Ribalda Delgado <[email protected]> | Wed Apr 15 20:42:08 2015 +0200| [16d20fe43e39d3f52e82e05e9a40fbb2c58622e7] | committer: 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: Ricardo Ribalda Delgado <[email protected]> Signed-off-by: Rémi Denis-Courmont <[email protected]> (cherry picked from commit 4372fe4df714fccb15eeb7e0baeae74fb97edaee) > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=16d20fe43e39d3f52e82e05e9a40fbb2c58622e7 --- modules/access/v4l2/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/access/v4l2/video.c b/modules/access/v4l2/video.c index fe5d1c9..b8544ea 100644 --- a/modules/access/v4l2/video.c +++ b/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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
