Browse Source

sdrbase/dsp: Fix copy-paste error in inverse FFT preallocation

Fix Coverity CID 652581 by calling setReuse(false) on the
inverse FFT engine instead of the forward FFT engine.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.1.0
Robin Getz 4 weeks ago
parent
commit
b6aff27ebd
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 2
      sdrbase/dsp/fftfactory.cpp

2
sdrbase/dsp/fftfactory.cpp

@ -65,7 +65,7 @@ void FFTFactory::preallocate( @@ -65,7 +65,7 @@ void FFTFactory::preallocate(
{
invFFTEngines.push_back(AllocatedEngine());
invFFTEngines.back().m_engine = FFTEngine::create(m_fftwWisdomFileName);
fftEngines.back().m_engine->setReuse(false);
invFFTEngines.back().m_engine->setReuse(false);
invFFTEngines.back().m_engine->configure(fftSize, true);
}
}

Loading…
Cancel
Save