ref: af97786e3ea0eb22be425a38d4e9b7f61320d567
parent: a5597968ec6b5b2f1614b8b56c4c759c44e7e4ac
author: Paul Brossier <piem@piem.org>
date: Sun Feb 23 06:54:19 EST 2014
src/io/source_apple_audio.c: do_multi do not write outside of matrix
--- a/src/io/source_apple_audio.c
+++ b/src/io/source_apple_audio.c
@@ -226,7 +226,7 @@
smpl_t **buf = read_to->data;
for (v = 0; v < loadedPackets; v++) {
- for (c = 0; c < s->channels; c++) {
+ for (c = 0; c < read_to->height; c++) {
buf[c][v] = SHORT_TO_FLOAT(data[ v * s->channels + c]);
}
}