module-combine: limit size to buffer maxsize

Limit the amount of data we write to the destination buffer to its
maxsize.
This commit is contained in:
Wim Taymans 2026-05-08 12:59:10 +02:00
parent 136fc59765
commit 93b940edef

View file

@ -1226,6 +1226,7 @@ static void combine_input_process(void *d)
offs = SPA_MIN(ds->chunk->offset, ds->maxsize);
size = SPA_MIN(ds->chunk->size, ds->maxsize - offs);
size = SPA_MIN(size, dd->maxsize);
ringbuffer_memcpy(&s->delay[j],
dd->data, SPA_PTROFF(ds->data, offs, void), size);