From 69440b8baa12ce16f61f19c528fa6de561b47757 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 8 Apr 2013 16:22:19 -0500 Subject: [PATCH] src/io/source_sndfile.c: write 0 to all channels in case of short read --- src/io/source_sndfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/source_sndfile.c b/src/io/source_sndfile.c index e6d99020..f46e6749 100644 --- a/src/io/source_sndfile.c +++ b/src/io/source_sndfile.c @@ -223,7 +223,7 @@ void aubio_source_sndfile_do_multi(aubio_source_sndfile_t * s, fmat_t * read_dat *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.; } -- 2.26.2