ref: 45f48576e2d143913ecf9c225e1b487d73440c62
parent: d0bdf0c4db5eabb3d0601ff01cf1989426368ca9
author: Paul Brossier <[email protected]>
date: Mon Jul 7 14:25:09 EDT 2014
src/io/source_sndfile.c: fix crash, zero-pad output vector when upsampling
--- a/src/io/source_sndfile.c
+++ b/src/io/source_sndfile.c
@@ -184,7 +184,7 @@
if (*read < s->hop_size) {
for (j = *read; j < s->hop_size; j++) {
- data[j] = 0;
+ read_data->data[j] = 0;
}
}
@@ -247,7 +247,7 @@
if (*read < s->hop_size) {
for (i = 0; i < read_data->height; i++) {
for (j = *read; j < s->hop_size; j++) {
- data[i][j] = 0.;
+ read_data->data[i][j] = 0.;
}
}
}