From 5c5075f4d610af0efd2539ba0417f76afe492a65 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 28 Mar 2025 16:10:42 +0100 Subject: [PATCH] videoconvert-ffmpeg: copy complete passthrough buffer data We also need to copy the data type, flags and sizes. --- spa/plugins/videoconvert/videoconvert-ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/videoconvert/videoconvert-ffmpeg.c b/spa/plugins/videoconvert/videoconvert-ffmpeg.c index b37ae8c4d..688d6d92c 100644 --- a/spa/plugins/videoconvert/videoconvert-ffmpeg.c +++ b/spa/plugins/videoconvert/videoconvert-ffmpeg.c @@ -1730,11 +1730,11 @@ impl_node_port_use_buffers(void *object, return -EIO; for (j = 0; j < n_datas; j++) { + b->buf->datas[j] = other->buffers[i % other->n_buffers].buf->datas[j]; b->datas[j] = other->buffers[i % other->n_buffers].datas[j]; maxsize = SPA_MAX(maxsize, d[j].maxsize); spa_log_debug(this->log, "buffer %d: mem:%d passthrough:%p maxsize:%d", i, j, b->datas[j], d[j].maxsize); - b->buf->datas[j].data = b->datas[j]; } } else {