[media] coda: fix first encoded frame payload
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 4 Jan 2016 19:30:09 +0000 (17:30 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 09:59:23 +0000 (07:59 -0200)
commit74dc385cb450089b28c28be2c8a0baca296b95f9
tree1ddd87bff4edb973b8d7ddd3d2b6595bb2332d3b
parent64e423d4fb7d561131a2dcc91930c401ab6bc217
[media] coda: fix first encoded frame payload

During the recent vb2_buffer restructuring, the calculation of the
buffer payload reported to userspace was accidentally broken for the
first encoded frame, counting only the length of the headers.
This patch re-adds the length of the actual frame data.

Fixes: 2d7007153f0c ("[media] media: videobuf2: Restructure vb2_buffer")
Reported-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Jan Luebbe <jlu@pengutronix.de>
Cc: <stable@vger.kernel.org> # for v4.4 and up
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-bit.c
This page took 0.028026 seconds and 5 git commands to generate.