mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 01:28:34 +00:00
analytics: fix analytics-meta re-use
- Fix alignment error when source and destination analytics-meta have the same relation order. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5767>
This commit is contained in:
parent
012222bcb3
commit
4425562661
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue