aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2019-01-25 13:40:04 -0200
committerMauro Carvalho Chehab <[email protected]>2019-01-31 09:32:05 -0200
commit560c053deb94ff65b22a87f28e8e2fab5940555c (patch)
tree7a80b3118cd2997947c4eda38931b06386af6a19 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent1284ed59a147c27cb882e49213571f7d52976eb5 (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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions