]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
coda: fix first encoded frame payload
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 4 Jan 2016 19:30:09 +0000 (17:30 -0200)
committerTim Gardner <tim.gardner@canonical.com>
Thu, 21 Apr 2016 12:52:44 +0000 (06:52 -0600)
commitf3b9256fa334c471a8534647a25ac38f17839993
treee0dee651bb315b77304cf0ab6b5797bad6dc97db
parent2b39c6b8a4f3fa6d981dd80bfe52effa6f602566
coda: fix first encoded frame payload

BugLink: http://bugs.launchpad.net/bugs/1572722
commit 74dc385cb450089b28c28be2c8a0baca296b95f9 upstream.

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>
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/media/platform/coda/coda-bit.c