mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-23 08:56:47 -05:00
audioconvert: avoid crash on 64 channels + monitor enabled
this->monitor enabled adds an additional port in reconfigure_mode. If there was already the maximum 64, this will crash. Make maximum number of ports one larger than max channels to avoid problems.
This commit is contained in:
parent
0f62d3442c
commit
6bfe9a362c
2 changed files with 5 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ SPA_LOG_IMPL(logger);
|
|||
|
||||
extern const struct spa_handle_factory test_source_factory;
|
||||
|
||||
#define MAX_PORTS SPA_AUDIO_MAX_CHANNELS
|
||||
#define MAX_PORTS (SPA_AUDIO_MAX_CHANNELS+1)
|
||||
|
||||
struct context {
|
||||
struct spa_handle *convert_handle;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue