ref: 58c24e1a357d9a19af0ca2ae379b6ad85a42a83f
parent: 8c7f80db180a96c10e0a542c77fbf2449bf16c39
author: Paul Brossier <piem@piem.org>
date: Mon Apr 8 12:17:29 EDT 2013
src/io/source_sndfile.c: fix copy of last channel
--- a/src/io/source_sndfile.c
+++ b/src/io/source_sndfile.c
@@ -208,8 +208,8 @@
if (read_data->height > input_channels) {
// copy last channel to all additional channels
for (j = 0; j < read_samples / input_channels; j++) {
- for (i = input_channels; i < read_to->height; i++) {
- data[i][v] = s->scratch_data[ j * input_channels + (input_channels - 1)];
+ for (i = input_channels; i < read_data->height; i++) {
+ data[i][j] = s->scratch_data[ j * input_channels + (input_channels - 1)];
}
}
}