mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
va: basetransform: Pass component index not plane index.
This is an issue detected and fixed in commit 3897b24f
for other
libraries and elements.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1566>
This commit is contained in:
parent
241a26631d
commit
b8068c6fda
1 changed files with 4 additions and 1 deletions
|
@ -619,11 +619,14 @@ gst_va_base_transform_allocator_from_caps (GstVaBaseTransform * self,
|
||||||
static inline gsize
|
static inline gsize
|
||||||
_get_plane_data_size (GstVideoInfo * info, guint plane)
|
_get_plane_data_size (GstVideoInfo * info, guint plane)
|
||||||
{
|
{
|
||||||
|
gint comp[GST_VIDEO_MAX_COMPONENTS];
|
||||||
gint height, padded_height;
|
gint height, padded_height;
|
||||||
|
|
||||||
|
gst_video_format_info_component (info->finfo, plane, comp);
|
||||||
|
|
||||||
height = GST_VIDEO_INFO_HEIGHT (info);
|
height = GST_VIDEO_INFO_HEIGHT (info);
|
||||||
padded_height =
|
padded_height =
|
||||||
GST_VIDEO_FORMAT_INFO_SCALE_HEIGHT (info->finfo, plane, height);
|
GST_VIDEO_FORMAT_INFO_SCALE_HEIGHT (info->finfo, comp[0], height);
|
||||||
|
|
||||||
return GST_VIDEO_INFO_PLANE_STRIDE (info, plane) * padded_height;
|
return GST_VIDEO_INFO_PLANE_STRIDE (info, plane) * padded_height;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue