From fec4544d1fd7d8354e0554f174013c669b6cf464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Kardos?= Date: Sun, 10 Jul 2022 14:20:54 +0200 Subject: [PATCH] bugfix --- include/dspbb/Filtering/Resample.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dspbb/Filtering/Resample.hpp b/include/dspbb/Filtering/Resample.hpp index 23bfcd8..4aade67 100644 --- a/include/dspbb/Filtering/Resample.hpp +++ b/include/dspbb/Filtering/Resample.hpp @@ -289,7 +289,7 @@ ResampleSuspensionPoint Resample(SignalR&& output, assert(polyphase.FilterCount() > 0); [[maybe_unused]] const auto maxLength = ResampleLength(input.Size(), polyphase.OriginalSize(), polyphase.FilterCount(), sampleRates, CONV_FULL); - assert(startPoint + int64_t(output.Size()) < maxLength); + assert(startPoint + int64_t(output.Size()) <= maxLength); auto outputIndex = startPoint; for (auto outputIt = output.begin(); outputIt != output.end(); ++outputIt, outputIndex += 1) {