[media] 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)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 19 Feb 2016 10:10:35 +0000 (08:10 -0200)
commit3e71da19f9dc22e39a755d6ae9678661abb66adc
tree023cf643b4a564150d971453565e5f6cdaa7d767
parent8344622781163d9fe05bd7ab9eaa0af7d13a74ec
[media] saa7134: Fix bytesperline not being set correctly for planar formats

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>
Cc: stable@vger.kernel.org
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>
drivers/media/pci/saa7134/saa7134-video.c