qv4l2/v4l2-ctl: fix rounding error in field-per-second calculation
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 20 Mar 2013 17:59:31 +0000 (18:59 +0100)
committerHans Verkuil <hans.verkuil@cisco.com>
Wed, 20 Mar 2013 17:59:31 +0000 (18:59 +0100)
commit9ff4dc6128d290634ce005f48ba70b3e312e74d8
tree611e40c4278a14e474eecab50fb0e7bd75813862
parent4f73607a2b30b956ae9b1ecffc4b8c260f8d2d05
qv4l2/v4l2-ctl: fix rounding error in field-per-second calculation

The total height was divided by 2, since height is odd we should make sure the
height is a double, not unsigned or you get a rounding error.

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