v4l2codecs: Fix tiled formats stride conversion
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 10 Oct 2023 19:43:07 +0000 (15:43 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 11 Oct 2023 15:48:50 +0000 (16:48 +0100)
commitc63e56fe63ef42673f2891efac546a8876e19639
tree483b4e5416fc473aedb9ebf6e55b3ad12f9f72fa
parentb5ca7eba4e3f244074128baceeb8b4c9355907e0
v4l2codecs: 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-bad/sys/v4l2codecs/gstv4l2format.c