From c2018ba7ec584accb09c2690d81dd0652bedb23b Mon Sep 17 00:00:00 2001 From: Mike Walters Date: Thu, 23 Jul 2015 18:05:38 +0100 Subject: [PATCH] Don't force height to be a multiple of FFT stride This was the wrong fix for an earlier bug that ended up sticking around Fixes #19 --- inputsource.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/inputsource.cpp b/inputsource.cpp index 327ee23..a2f15d4 100644 --- a/inputsource.cpp +++ b/inputsource.cpp @@ -70,9 +70,7 @@ void InputSource::getViewport(float *dest, int x, int y, int width, int height, } int InputSource::getHeight() { - int lines = m_file_size / sizeof(fftwf_complex) / getFFTStride(); - // Force height to be a multiple of overlap size - return (lines / getFFTStride()) * getFFTStride(); + return m_file_size / sizeof(fftwf_complex) / getFFTStride(); } int InputSource::getWidth() {