OSDN Git Service

media: vivid: take data_offset into account for video output
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 14 Jan 2019 16:23:52 +0000 (11:23 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Jan 2019 18:40:49 +0000 (13:40 -0500)
commit987303cc172a0899bc25b913d1315809a9fb8d17
tree674116fee766a5f2d1408d4c0363e815c26f0b3a
parent4b837c6d7ee771f68a30f362c9f68171a95be222
media: vivid: take data_offset into account for video output

The video output sizeimage calculation did not take data_offset into account.

This can cause problems with video loopback or exporting output buffers for
use as dmabuf import buffers since the output buffer size is now too small.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vivid/vivid-vid-out.c