staging: bcm2835-codec: Correct bytesperline on format changed
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Thu, 11 Jul 2019 13:58:35 +0000 (14:58 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:04 +0000 (16:33 +0100)
commit4206ddd7c73ac82fa1d1412566fb1e1b6c61ea04
tree45b6d961aa5185fa731117caccdb9a8d9784c736
parent0b4afbb93df470055109cc849cbd094f07001d20
staging: bcm2835-codec: Correct bytesperline on format changed

The handling of format changed events incorrectly set bytesperline
to the cropped width, which ignored padding and formats with
more than 8bpp.
Fix these.

Reported by: zillevdr <zillevdr@gmx.de>
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c