]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: vivid: fix wrong sizeimage value for mplane
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 26 Jun 2024 10:59:13 +0000 (12:59 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 26 Jun 2024 15:28:31 +0000 (17:28 +0200)
commit0fd7c0c2c156270dceb8c15fad3120cdce03e539
treeb8e2d2ce5fd5aa55c9c99163428ac5aed9a6b4eb
parent7603ac5a8a1cce6513fa5956b089843b1965689c
media: vivid: fix wrong sizeimage value for mplane

In several places a division by fmt->vdownsampling[p] was
missing in the sizeimage[p] calculation, causing incorrect
behavior for multiplanar formats were some planes are smaller
than the first plane.

Found by new v4l2-compliance tests.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/test-drivers/vivid/vivid-vid-cap.c
drivers/media/test-drivers/vivid/vivid-vid-out.c