From 4edba9d0548d88fa62c406078e5cca441b5cb825 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 20 Dec 2018 19:26:08 +0100 Subject: [PATCH] [io] fix source output padding sizes --- src/io/ioutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/io/ioutils.c b/src/io/ioutils.c index 3427cd10..6657352a 100644 --- a/src/io/ioutils.c +++ b/src/io/ioutils.c @@ -96,8 +96,8 @@ void aubio_source_pad_output (fvec_t *read_data, uint_t source_read) { if (source_read < read_data->length) { - AUBIO_MEMSET(read_data->data + source_read, 0, read_data->length - - source_read); + AUBIO_MEMSET(read_data->data + source_read, 0, + (read_data->length - source_read) * sizeof(smpl_t)); } } @@ -108,7 +108,7 @@ aubio_source_pad_multi_output (fmat_t *read_data, if (source_read < read_data->length) { for (i = 0; i < read_data->height; i++) { AUBIO_MEMSET(read_data->data[i] + source_read, 0, - read_data->length - source_read); + (read_data->length - source_read) * sizeof(smpl_t)); } } -- 2.11.0