]> git.karo-electronics.de Git - karo-tx-linux.git/commit
saa7134: Fix bytesperline not being set correctly for planar formats
authorHans de Goede <hdegoede@redhat.com>
Sun, 14 Feb 2016 19:51:37 +0000 (17:51 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:50 +0000 (09:08 -0700)
commit4fe401d63051c524e45d2a1c57bf1e34ecc19a7b
treeb8beebd1112ba99ec12b4a9af4cd1721097dd758
parentfc0768092cebd0b70a08f5423263669ea3849ef9
saa7134: Fix bytesperline not being set correctly for planar formats

commit 3e71da19f9dc22e39a755d6ae9678661abb66adc upstream.

bytesperline should be the bytesperline for the first plane for planar
formats, not that of all planes combined.

This fixes a crash in xawtv caused by the wrong bpl.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1305389
Reported-and-tested-by: Stas Sergeev <stsp@list.ru>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/pci/saa7134/saa7134-video.c