mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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:
parent
c308f013a7
commit
e4ee4ca716
1 changed files with 3 additions and 1 deletions
|
@ -3551,7 +3551,9 @@ gst_v4l2_object_save_format (GstV4l2Object * v4l2object,
|
||||||
if (GST_VIDEO_FORMAT_INFO_IS_TILED (finfo)) {
|
if (GST_VIDEO_FORMAT_INFO_IS_TILED (finfo)) {
|
||||||
guint tile_height;
|
guint tile_height;
|
||||||
tile_height = GST_VIDEO_FORMAT_INFO_TILE_HEIGHT (finfo, 0);
|
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 =
|
align->padding_bottom =
|
||||||
|
|
Loading…
Reference in a new issue