aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-compliance/v4l2-test-formats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/v4l2-compliance/v4l2-test-formats.cpp')
-rw-r--r--utils/v4l2-compliance/v4l2-test-formats.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-formats.cpp b/utils/v4l2-compliance/v4l2-test-formats.cpp
index 6746c0db..9cd7b660 100644
--- a/utils/v4l2-compliance/v4l2-test-formats.cpp
+++ b/utils/v4l2-compliance/v4l2-test-formats.cpp
@@ -517,6 +517,7 @@ static int testFormatsType(struct node *node, int ret, unsigned type, struct v4
if (set.find(sdr.pixelformat) == set.end())
return fail("unknown pixelformat %08x for buftype %d\n",
pix.pixelformat, type);
+ fail_on_test(sdr.buffersize == 0);
fail_on_test(check_0(sdr.reserved, sizeof(sdr.reserved)));
break;
case V4L2_BUF_TYPE_PRIVATE:

Privacy Policy