v4l2: Fix tiled formats stride conversion
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 11 Oct 2023 13:36:11 +0000 (09:36 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 11 Oct 2023 15:48:51 +0000 (16:48 +0100)
commitf223ea076d58d8a959a8a9823e4d2168b99f9745
treee775064b162a1f4376a32037a123cc89663a336e
parentc63e56fe63ef42673f2891efac546a8876e19639
v4l2: Fix tiled formats stride conversion

While adding arbitrary tile support, a round up operation was badly
converter. This caused the Y component of the stride to be 0. This
eventually lead to a crash in glupoad preceded by the following
assertion.

  gst_gl_buffer_allocation_params_new: assertion 'alloc_size > 0' failed

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