diff --git a/lib/SoapySDR.lib b/lib/SoapySDR.lib deleted file mode 100644 index 3c34688f..00000000 Binary files a/lib/SoapySDR.lib and /dev/null differ diff --git a/src/dsp/resampling.h b/src/dsp/resampling.h index 78ed06dd..09d183e7 100644 --- a/src/dsp/resampling.h +++ b/src/dsp/resampling.h @@ -320,7 +320,7 @@ namespace dsp { complex_t* delayStart = &inBuf[std::max(inCount - tapCount, 0)]; int delaySize = tapCount * sizeof(complex_t); complex_t* delayBufEnd = &delayBuf[std::max(tapCount - inCount, 0)]; - int moveSize = (tapCount - inCount) * sizeof(complex_t); + int moveSize = std::min(inCount, tapCount - inCount) * sizeof(complex_t); int inSize = inCount * sizeof(complex_t); int interp = _this->_interp; @@ -514,7 +514,7 @@ namespace dsp { float* delayStart = &inBuf[std::max(inCount - tapCount, 0)]; int delaySize = tapCount * sizeof(float); float* delayBufEnd = &delayBuf[std::max(tapCount - inCount, 0)]; - int moveSize = (tapCount - inCount) * sizeof(float); + int moveSize = std::min(inCount, tapCount - inCount) * sizeof(float); int inSize = inCount * sizeof(float); int interp = _this->_interp;