qv4l2: make sure to reset bytesperline.
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 18 Nov 2011 13:48:07 +0000 (14:48 +0100)
committerHans Verkuil <hans.verkuil@cisco.com>
Mon, 21 Nov 2011 10:22:38 +0000 (11:22 +0100)
commit70b8838b95d47c1e80a60e659ef87820e117b5ae
tree545f1b17b7a095124253d2ea932ee944f2c573fb
parent65ba1706bac03dc112d4a71e79dcf8ad617e635c
qv4l2: make sure to reset bytesperline.

If bytesperline > width * bpp, then qv4l2 can't handle that situation correctly,
partially due to missing support for this in qv4l2, partially due to missing
support for this in libv4lconvert.

So before starting capturing, call s_fmt with bytesperline 0 and use whatever
the driver returns.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/qv4l2/qv4l2.cpp
utils/qv4l2/v4l2-api.cpp