From b8068c6fdade4105d28ef4587ec52e8c1f6c67e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 25 Jan 2022 12:32:50 +0100 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c b/subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c index f64dd2c..f9cef37 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c @@ -619,11 +619,14 @@ gst_va_base_transform_allocator_from_caps (GstVaBaseTransform * self, static inline gsize _get_plane_data_size (GstVideoInfo * info, guint plane) { + gint comp[GST_VIDEO_MAX_COMPONENTS]; gint height, padded_height; + gst_video_format_info_component (info->finfo, plane, comp); + height = GST_VIDEO_INFO_HEIGHT (info); 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; } -- 2.7.4