From 785ba05bcab8af0ea6a9628ecf8f7f79b0a1b211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 11 Jan 2023 15:11:48 +0200 Subject: [PATCH] gstreamer: Announce support for video meta on the input side This allows handling input buffers with non-default strides, which was already handled fine by the element code. Without this, potentially expensive conversion was needed. --- subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c b/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c index eadee133b5..e12a27458d 100644 --- a/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c +++ b/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c @@ -792,7 +792,9 @@ gst_svtav1enc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query) GST_DEBUG_OBJECT (svtav1enc, "propose_allocation"); - return TRUE; + gst_query_add_allocation_meta(query, GST_VIDEO_META_API_TYPE, NULL); + + return GST_VIDEO_ENCODER_CLASS (gst_svtav1enc_parent_class)->propose_allocation (encoder, query); } static gboolean