13
0

yet unheard of edge-case.

This commit is contained in:
Robin Gareus 2015-03-10 22:06:28 +01:00
parent 68146a0969
commit 9b2898c533

View File

@ -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;