mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
video-info: update padding
Update the alignement structure with the new padding values because they could have been changed when the padding was increased to align the strides.
This commit is contained in:
parent
9a2344c2e5
commit
9583d1bfc9
1 changed files with 3 additions and 1 deletions
|
@ -675,7 +675,7 @@ done:
|
|||
* stride alignment in @align is respected.
|
||||
*
|
||||
* Extra padding will be added to the right side when stride alignment padding
|
||||
* is required.
|
||||
* is required and @align will be updated with the new padding values.
|
||||
*/
|
||||
void
|
||||
gst_video_info_align (GstVideoInfo * info, GstVideoAlignment * align)
|
||||
|
@ -718,6 +718,8 @@ gst_video_info_align (GstVideoInfo * info, GstVideoAlignment * align)
|
|||
padded_width += padded_width & ~(padded_width - 1);
|
||||
} while (!aligned);
|
||||
|
||||
align->padding_right = padded_width - width - align->padding_left;
|
||||
|
||||
info->width = width;
|
||||
info->height = height;
|
||||
|
||||
|
|
Loading…
Reference in a new issue