projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1ddb9d1
)
[io] fix source output padding sizes
author
Paul Brossier
<piem@piem.org>
Thu, 20 Dec 2018 18:26:08 +0000
(19:26 +0100)
committer
Paul Brossier
<piem@piem.org>
Thu, 20 Dec 2018 18:26:08 +0000
(19:26 +0100)
src/io/ioutils.c
patch
|
blob
|
history
diff --git
a/src/io/ioutils.c
b/src/io/ioutils.c
index
3427cd1
..
6657352
100644
(file)
--- 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_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,
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)
);
}
}
}
}