Fix bug with too small initial skipFract value

Fix bug with too small initial skipFract value with certain processing
parameter set: replaces assert with assignment that corrects the
situation.
This commit is contained in:
Olli 2021-03-03 18:11:45 +02:00
parent 6533514372
commit 17a63e99d5

View File

@ -687,7 +687,10 @@ void TDStretch::processSamples()
}
#endif
skipFract -= skip;
assert(nominalSkip >= -skipFract);
if (skipFract <= -nominalSkip)
{
skipFract = -nominalSkip;
}
}
// ... then copy sequence samples from 'inputBuffer' to output: