V4L/DVB: saa7146: fix up bytesperline if it is an impossible value
authorMichael Hunold <michael@mihu.de>
Sat, 13 Mar 2010 14:45:46 +0000 (11:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 6 May 2010 22:19:04 +0000 (19:19 -0300)
commit84a1d9c83e3e13991b958c897b6e9d6a5e4ce76d
tree9ea7ced54b381d2d0cb89d30464fcea1e36a7a3d
parentab51bec1f852f6b858a26e745b32a79cd1a67eec
V4L/DVB: saa7146: fix up bytesperline if it is an impossible value

xawtv using DGA on a Radeon graphics card provides bogus
values to S_FBUF, which will then screw up overlay video:

https://bugs.launchpad.net/ubuntu/+source/xawtv/+bug/499734

This fixes the bytesperline value if it is off completely.

Signed-off-by: Michael Hunold <michael@mihu.de>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/saa7146_video.c