mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
parent
4dcd0dacc9
commit
72d70b0f48
9 changed files with 34 additions and 18 deletions
|
|
@ -199,7 +199,7 @@ static void sanitize_map(snd_pcm_chmap_t* map)
|
|||
uint32_t i, j, pos;
|
||||
|
||||
for (i = 0; i < map->channels; i++) {
|
||||
if (map->pos[i] < 0 || map->pos[i] > SND_CHMAP_LAST)
|
||||
if (map->pos[i] > SND_CHMAP_LAST)
|
||||
map->pos[i] = SND_CHMAP_UNKNOWN;
|
||||
|
||||
p = 1LL << map->pos[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue