mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-27 16:10:48 +01:00
cleanup: fix leak
This commit is contained in:
parent
98f795a7d2
commit
09746b5253
@ -115,7 +115,7 @@ void mixer_op_downmix(mixer_t* mixer, int32_t sample_count, mix_op_t* op) {
|
||||
sbuf_tmp[ch] = sbuf[ch]; /* copy untouched channels */
|
||||
}
|
||||
|
||||
for (int ch = op->ch_dst; ch < max_channels; ch++) {
|
||||
for (int ch = op->ch_dst; ch < max_channels - 1; ch++) {
|
||||
sbuf_tmp[ch] = sbuf[ch + 1]; /* 'pull' dropped channels back */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user