From 5ccb7323be3b7d7011d42de6f9843b3a813c7964 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 14 Apr 2016 20:09:02 +0100 Subject: [PATCH] Speculative fix for resampler input/output array overlap error. --- src/lib/resampler.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.30.2