v4l2-compliance: refactor code to create invalid formats.
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 31 May 2013 14:20:51 +0000 (16:20 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Fri, 31 May 2013 14:20:51 +0000 (16:20 +0200)
commit1196d3a9186b967f6b9567536c8514b064e372cc
tree4228ab31a27e314a9a7c70d0c70b644700668d35
parent4b097d6ebb8d3e67e5752b3a9f512cdf0ed34de3
v4l2-compliance: refactor code to create invalid formats.

In order to test the format ioctls we fill v4l2_format with invalid
values. But for the overlay buffer types the clips and bitmap fields
must be NULL. This was done in one place, but not in the others.

Make a function that does this and call it in all places where it
is needed.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/v4l2-compliance/v4l2-test-formats.cpp