From 4425562661414d65eba112a60e9212f6f27b23b4 Mon Sep 17 00:00:00 2001 From: Daniel Morin Date: Tue, 5 Dec 2023 20:12:36 -0500 Subject: [PATCH] analytics: fix analytics-meta re-use - Fix alignment error when source and destination analytics-meta have the same relation order. Part-of: --- .../gst-plugins-bad/gst-libs/gst/analytics/gstanalyticsmeta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/analytics/gstanalyticsmeta.c b/subprojects/gst-plugins-bad/gst-libs/gst/analytics/gstanalyticsmeta.c index ae9721e8bb..6e1a1a6630 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/analytics/gstanalyticsmeta.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/analytics/gstanalyticsmeta.c @@ -320,8 +320,8 @@ gst_analytics_relation_meta_transform (GstBuffer * transbuf, } if (rmeta->rel_order == new->rel_order) { - memcpy (new->adj_mat + new->rel_order, rmeta->adj_mat, - rmeta->rel_order * rmeta->rel_order); + memcpy (new->adj_mat + new->rel_order, rmeta->adj_mat + + rmeta->rel_order, rmeta->rel_order * rmeta->rel_order); } else { /* When destination adj_mat has a higher order than source we need * to copy by row to have the correct alignment */