diff --git a/libs/ardour/interpolation.cc b/libs/ardour/interpolation.cc index 79b43bc58e..be4967b521 100644 --- a/libs/ardour/interpolation.cc +++ b/libs/ardour/interpolation.cc @@ -81,8 +81,10 @@ CubicInterpolation::interpolate (int channel, framecnt_t nframes, Sample *input, if (nframes < 3) { /* no interpolation possible */ - for (i = 0; i < nframes; ++i) { - output[i] = input[i]; + if (input && output) { + for (i = 0; i < nframes; ++i) { + output[i] = input[i]; + } } return nframes;