diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2019-01-25 13:40:04 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-01-31 09:32:05 -0200 |
commit | 560c053deb94ff65b22a87f28e8e2fab5940555c (patch) | |
tree | 7a80b3118cd2997947c4eda38931b06386af6a19 /lib/percpu_test.c | |
parent | 1284ed59a147c27cb882e49213571f7d52976eb5 (diff) |
media: vivid: fix vid_out_buf_prepare()
The wrong size check was performed for output formats like NV24 which
set vfmt->buffers to 1, but vfmt->planes is 2. It was incorrectly
checking the payload size for plane 1, which doesn't exist.
Note: vfmt->buffers refers to the number of per-plane-buffers that
should be allocated. vfmt->planes refers to the number of planes
that make up an image. vfmt->planes may be > vfmt->buffers.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'lib/percpu_test.c')
0 files changed, 0 insertions, 0 deletions