channelmix: leave volume unchanged for unknown channel volumes

When we get an unknown number of channels, don't do anything, like it
used to be.
This commit is contained in:
Wim Taymans 2022-09-29 12:44:42 +02:00
parent 8a4091f578
commit a30b335beb

View file

@ -540,7 +540,7 @@ static void impl_channelmix_set_volume(struct channelmix *mix, float volume, boo
mix->matrix[i][j] = mix->matrix_orig[i][j] * volumes[i];
}
}
} else {
} else if (n_channel_volumes == 0) {
for (i = 0; i < dst_chan; i++) {
for (j = 0; j < src_chan; j++) {
mix->matrix[i][j] = mix->matrix_orig[i][j] * vol;