From 14f48c7a1ca4765cef5ca6af6d110cf01997994c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 28 Apr 2025 09:45:04 +0200 Subject: [PATCH] acp: probe max 192 channels Thr 256 channel probe can cause overflows because we use uint8_t for the channel count in some places. Fixes #4669 --- spa/plugins/alsa/acp/acp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/alsa/acp/acp.c b/spa/plugins/alsa/acp/acp.c index c2ab555f0..bcd78c81d 100644 --- a/spa/plugins/alsa/acp/acp.c +++ b/spa/plugins/alsa/acp/acp.c @@ -16,7 +16,7 @@ void *_acp_log_data; struct spa_i18n *acp_i18n; -#define DEFAULT_CHANNELS 256u +#define DEFAULT_CHANNELS 255u #define DEFAULT_RATE 48000u #define VOLUME_ACCURACY (PA_VOLUME_NORM/100) /* don't require volume adjustments to be perfectly correct. don't necessarily extend granularity in software unless the differences get greater than this level */