Skip to content

audioconvert: avoid crash on 64 channels + monitor enabled

P V requested to merge pvir/pipewire:audioconvert-fix into master

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.


Got a crash in audioconvert.c:reconfigure_mode -> init_port when it was trying to monitor, but not clear how to reproduce now.

Edited by Wim Taymans

Merge request reports