mirror of
https://gitlab.com/ecodis/exhale.git
synced 2025-06-05 21:59:32 +02:00
fix >48-kHz coding
This commit is contained in:
@@ -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 ||
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user