From: Paul Brossier Date: Mon, 8 Apr 2013 21:22:19 +0000 (-0500) Subject: src/io/source_sndfile.c: write 0 to all channels in case of short read X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=69440b8baa12ce16f61f19c528fa6de561b47757;p=aubio.git src/io/source_sndfile.c: write 0 to all channels in case of short read --- 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.; }