ref: 69440b8baa12ce16f61f19c528fa6de561b47757
parent: 58c24e1a357d9a19af0ca2ae379b6ad85a42a83f
author: Paul Brossier <piem@piem.org>
date: Mon Apr 8 12:22:19 EDT 2013
src/io/source_sndfile.c: write 0 to all channels in case of short read
--- a/src/io/source_sndfile.c
+++ b/src/io/source_sndfile.c
@@ -223,7 +223,7 @@
*read = (int)FLOOR(s->ratio * read_samples / input_channels + .5);
if (*read < s->hop_size) {
- for (i = 0; i < input_channels; i++) {
+ for (i = 0; i < read_data->height; i++) {
for (j = *read; j < s->hop_size; j++) {
data[i][j] = 0.;
}