]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] vb2: Allow queuing OUTPUT buffers with zeroed 'bytesused'
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 26 Aug 2013 14:47:09 +0000 (11:47 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 24 Sep 2013 16:40:56 +0000 (13:40 -0300)
commit3c5c23c57717bf134a3c3f4af5886c7e08500e34
tree66652df354a5fabaf38c2e7138366d444c047a82
parenta7a69197a7e6aca22acdddef3f1bb691e239e6d1
[media] vb2: Allow queuing OUTPUT buffers with zeroed 'bytesused'

Modify the bytesused/data_offset check to not fail if both bytesused
and data_offset is set to 0. This should minimize possible issues in
existing applications which worked before we enforced the plane lengths
for output buffers checks introduced in commit 8023ed09cb278004a2
"videobuf2-core: Verify planes lengths for output buffers"

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf2-core.c