summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-14 20:09:02 +0100
committerCarl Hetherington <cth@carlh.net>2016-04-14 20:09:02 +0100
commit5ccb7323be3b7d7011d42de6f9843b3a813c7964 (patch)
tree9f01762a08b78d81da93f76d9f9dd868a60d85aa
parent179db5685401733ea9159816ba516818bd539533 (diff)
Speculative fix for resampler input/output array overlap error.
-rw-r--r--src/lib/resampler.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc
index 43dc50162..faf07e2a7 100644
--- a/src/lib/resampler.cc
+++ b/src/lib/resampler.cc
@@ -139,7 +139,11 @@ Resampler::flush ()
int out_offset = 0;
int64_t const output_size = 65536;
- float dummy[1];
+ /* I think this should only need to be 1 long, but I have seen
+ src_process error with "input and output data arrays overlap"
+ with dummy[1] (on OS X). I've added a few more for luck.
+ */
+ float dummy[16];
float buffer[output_size];
SRC_DATA data;