Remove some hardcoded channel number values

Mostly related to the number of channels.
This commit is contained in:
Wim Taymans 2025-04-04 15:04:09 +02:00
parent 5cfd461ba2
commit 722776cf65
5 changed files with 8 additions and 6 deletions

View file

@ -320,7 +320,7 @@ static void rtp_opus_process_capture(void *data)
static int rtp_opus_init(struct impl *impl, enum spa_direction direction)
{
int err;
unsigned char mapping[64];
unsigned char mapping[SPA_AUDIO_MAX_CHANNELS];
uint32_t i;
if (impl->psamples >= 2880)