aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl-streaming.cpp')
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-streaming.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
index 3695a027..85f97722 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -1108,7 +1108,7 @@ restart:
fprintf(stderr, "amount intended to be read/written is larger than the buffer size\n");
return false;
}
- if (first && sz != expected_len) {
+ if (first && sz != expected_len && fmt.g_bytesperline(j)) {
fprintf(stderr, "%s: size read (%u) is different than needed (%u) in the first frame\n",
__func__, sz, expected_len);
return false;
@@ -1123,9 +1123,8 @@ restart:
continue;
if (sz == 0)
return false;
- if (sz)
+ if (sz && fmt.g_bytesperline(j))
fprintf(stderr, "%u != %u\n", sz, expected_len);
- continue;
}
first = false;
return true;

Privacy Policy