v4l2: fix error in calculating padding bottom for tile format

This is a regression while porting to arbitrary tile dimensions
introduced in !3424.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6480>
This commit is contained in:
Elliot Chen 2024-03-29 11:14:54 +09:00 committed by GStreamer Marge Bot
parent c308f013a7
commit e4ee4ca716

View file

@ -3551,7 +3551,9 @@ gst_v4l2_object_save_format (GstV4l2Object * v4l2object,
if (GST_VIDEO_FORMAT_INFO_IS_TILED (finfo)) {
guint tile_height;
tile_height = GST_VIDEO_FORMAT_INFO_TILE_HEIGHT (finfo, 0);
padded_height = (padded_height + tile_height - 1) / tile_height;
/* Round-up to tile_height as drivers are not forced to do so */
padded_height =
(padded_height + tile_height - 1) / tile_height * tile_height;
}
align->padding_bottom =