yet unheard of edge-case.
This commit is contained in:
parent
68146a0969
commit
9b2898c533
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user