mirror of
https://gitlab.com/ecodis/exhale.git
synced 2025-01-04 19:20:32 +01:00
fix MSYS issue #26
This commit is contained in:
parent
46ae72aabf
commit
c0fe486c0f
@ -110,7 +110,7 @@ uint16_t BitAllocator::getRateCtrlFac (const int32_t rateRatio, const unsigned s
|
||||
(m_rateIndex == 2 ? 1 << 12 : 0); // rate tuning
|
||||
const uint16_t mSfmSqr = (m_rateIndex <= 2 && samplingRate >= 27713 ? (specFlatness * specFlatness) >> m_rateIndex : 0);
|
||||
#else
|
||||
const uint32_t brRatio = __max (1 << 15, __min (USHRT_MAX, rateRatio * (36 - 9 * m_rateIndex)));
|
||||
const uint32_t brRatio = __max (1 << 15, __min ((1 << 16) - 1, rateRatio * (36 - 9 * m_rateIndex)));
|
||||
const uint16_t mSfmSqr = (m_rateIndex < 2 && samplingRate >= 27713 ? (specFlatness * specFlatness) >> m_rateIndex : 0);
|
||||
#endif
|
||||
const uint16_t mSfmFac = 256 - (((32 + m_rateIndex) * (specFlatness << 4) - mSfmSqr + (1 << 9)) >> 10);
|
||||
|
Loading…
Reference in New Issue
Block a user