fix >48-kHz coding

This commit is contained in:
Christian R. Helmrich
2020-04-28 16:00:00 +02:00
parent 012aecf3c5
commit 70534ca7b4
2 changed files with 5 additions and 5 deletions

View File

@@ -542,7 +542,7 @@ unsigned SfbQuantizer::initQuantMemory (const unsigned maxTransfLength,
if ((m_coeffMagn = (unsigned*) malloc (maxTransfLength * sizeof (unsigned))) == nullptr || if ((m_coeffMagn = (unsigned*) malloc (maxTransfLength * sizeof (unsigned))) == nullptr ||
#if EC_TRELLIS_OPT_CODING #if EC_TRELLIS_OPT_CODING
(m_coeffTemp = (uint8_t* ) malloc (maxTransfLength + quantRateLength )) == nullptr || (m_coeffTemp = (uint8_t* ) malloc (maxTransfLength + quantRateLength*2)) == nullptr ||
#endif #endif
(m_lut2ExpX4 = (double* ) malloc (numScaleFactors * sizeof (double ))) == nullptr || (m_lut2ExpX4 = (double* ) malloc (numScaleFactors * sizeof (double ))) == nullptr ||
(m_lutSfNorm = (double* ) malloc (numScaleFactors * sizeof (double ))) == nullptr || (m_lutSfNorm = (double* ) malloc (numScaleFactors * sizeof (double ))) == nullptr ||

View File

@@ -28,10 +28,10 @@ private:
// member variables // member variables
#if SP_SFB_WISE_STEREO #if SP_SFB_WISE_STEREO
int32_t m_originBandMdct1[200]; // i.e. 40 * 5 - NOTE: increase this when maximum grpLength > 5 int32_t m_originBandMdct1[320]; // i.e. 64 * 5 - NOTE: increase this when maximum grpLength > 5
int32_t m_originBandMdct2[200]; int32_t m_originBandMdct2[320];
int32_t m_originBandMdst1[200]; int32_t m_originBandMdst1[320];
int32_t m_originBandMdst2[200]; int32_t m_originBandMdst2[320];
#endif #endif
uint8_t m_stereoCorrValue[1024 >> SA_BW_SHIFT]; // one value for every 32 spectral coefficients uint8_t m_stereoCorrValue[1024 >> SA_BW_SHIFT]; // one value for every 32 spectral coefficients