qv4l2: force bytesperline recalculation when changing the width.
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 20 Jul 2014 13:19:15 +0000 (15:19 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Sun, 20 Jul 2014 13:19:15 +0000 (15:19 +0200)
commitfc9fbd6eb03e6a0443c10a28d987a4663b925332
tree7b3245e7a8ecb33f5eaeef821e4f06f23f0ec219
parentc646931f47a366305f87d25750ed585b441d1cbf
qv4l2: force bytesperline recalculation when changing the width.

Most drivers will always recalculate bytesperline, but some allow for
applications to set it in order to support line padding.

In that case you need to set the bytesperline to 0 when setting a new
format in order to force the recalculation.

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