v4l2: Update fmt if padded height is greater than fmt height
authorTrung Do <trung1.dothanh@toshiba.co.jp>
Mon, 1 Nov 2021 03:08:32 +0000 (10:08 +0700)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 16 Nov 2021 15:46:29 +0000 (10:46 -0500)
commita87be69ce5eb6b91dc53732b4fcfad4bb77fb87b
tree7d168f34c1f1dd3e42f7583e6713b00f29bfd7aa
parent6d7dc93a450d50053bbc1c7ab67fc300f7ccdf1a
v4l2: Update fmt if padded height is greater than fmt height

If padded height is greater, buffer bytesused could be larger than plane length,
and cause VIDIOC_QBUF failure.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1355>
subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c