[media] vb2: fix multiplanar read() with non-zero data_offset
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 25 Jul 2014 09:08:36 +0000 (06:08 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 2 Sep 2014 19:37:50 +0000 (16:37 -0300)
commit529a53c6087b3e8648185dfa4491043ec43554d6
treeb21699ae1bc18b4fd745e02c489e12cd672358da
parent41b9aa0040526d13e08e2ad79970377afe1d622d
[media] vb2: fix multiplanar read() with non-zero data_offset

If this is a multiplanar buf_type and the plane we want to read has a
non-zero data_offset, then that data_offset was not taken into account.

Note that read() or write() for formats with more than one plane is currently
not allowed, hence the use of 'planes[0]' since this is only relevant for a
single-plane format.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf2-core.c
This page took 0.031148 seconds and 5 git commands to generate.