mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-08 12:06:40 -04:00
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:
parent
136fc59765
commit
93b940edef
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue