Fix loop variable bug in V4L2 camera format enumeration
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled

(cherry picked from commit 19988c5faa)
This commit is contained in:
Qiu Qiang
2025-12-07 14:12:03 -08:00
committed by Sam Lantinga
parent eb5eb4a33d
commit 057634d069
+1 -1
View File
@@ -796,7 +796,7 @@ static void MaybeAddDevice(const char *path)
const int stepw = (int) frmsizeenum.stepwise.step_width;
const int steph = (int) frmsizeenum.stepwise.step_height;
for (int w = minw; w <= maxw; w += stepw) {
for (int h = minh; w <= maxh; w += steph) {
for (int h = minh; h <= maxh; h += steph) {
#if DEBUG_CAMERA
SDL_Log("CAMERA: * Has %s size %dx%d", (frmsizeenum.type == V4L2_FRMSIZE_TYPE_STEPWISE) ? "stepwise" : "continuous", w, h);
#endif