aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-20 11:48:25 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-29 16:09:11 +0100
commiteb680fda1dc5fb2a107b5506810ac8a20e63bbe6 (patch)
tree367ca15e8d373ead2bcfe7099e2ae700ea26e1a3
parent949361f4eca4af7c80edc1537fd2b6b0eaa8beb8 (diff)
v4l2-compliance: check for the presence of MIN_BUFFERS_OUTPUT
This control is required for stateful encoders. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/v4l2-compliance/v4l2-test-controls.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-controls.cpp b/utils/v4l2-compliance/v4l2-test-controls.cpp
index 4f354a43..c910b58b 100644
--- a/utils/v4l2-compliance/v4l2-test-controls.cpp
+++ b/utils/v4l2-compliance/v4l2-test-controls.cpp
@@ -866,6 +866,9 @@ int testEvents(struct node *node)
}
}
+ if (node->codec_mask & STATEFUL_ENCODER)
+ fail_on_test(node->controls.find(V4L2_CID_MIN_BUFFERS_FOR_OUTPUT) == node->controls.end());
+
struct v4l2_event_subscription sub = { 0 };
sub.type = V4L2_EVENT_EOS;

Privacy Policy