projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c7f80d
)
src/io/source_sndfile.c: fix copy of last channel
author
Paul Brossier
<piem@piem.org>
Mon, 8 Apr 2013 21:17:29 +0000
(16:17 -0500)
committer
Paul Brossier
<piem@piem.org>
Mon, 8 Apr 2013 21:17:29 +0000
(16:17 -0500)
src/io/source_sndfile.c
patch
|
blob
|
history
diff --git
a/src/io/source_sndfile.c
b/src/io/source_sndfile.c
index 28b31d348574046bbf7c9ae5b688ef1c1fb98291..e6d99020b234b798d4a185c7883c3f80268503a2 100644
(file)
--- a/
src/io/source_sndfile.c
+++ b/
src/io/source_sndfile.c
@@
-208,8
+208,8
@@
void aubio_source_sndfile_do_multi(aubio_source_sndfile_t * s, fmat_t * read_dat
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)];
}
}
}