[media] coda: correctly set capture compose rectangle
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 20 Jan 2017 14:00:21 +0000 (12:00 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Jan 2017 10:16:01 +0000 (08:16 -0200)
commit4ec319eb828af736a11b48f47bc2421294c76f50
treed857d6e15f343f6c4a0ecbd51d86663745e6724e
parent126f52b02e6ec6a25f0b32058a91648304922d4a
[media] coda: correctly set capture compose rectangle

Correctly store the rectangle of valid video data in the destination
q_data before rounding up to macroblock size. This fixes the output
of VIDIOC_G_SELECTION for the capture side compose rectangle.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/coda/coda-common.c