From d2bede244980bd22d93ed17158f45b5084a25446 Mon Sep 17 00:00:00 2001 From: "Christian R. Helmrich" Date: Tue, 25 Aug 2020 01:00:00 +0200 Subject: [PATCH] finish 1.0.7 release --- include/Release.htm | 5 +++-- src/lib/exhaleEnc.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/Release.htm b/include/Release.htm index db16b58..022f056 100644 --- a/include/Release.htm +++ b/include/Release.htm @@ -30,6 +30,7 @@

   Version 1.0.7  Aug. 2020, this release

   Version 1.0.6  July 2020

@@ -97,8 +98,8 @@

   If you are in need of an additional library or application feature not mentioned below, please contact ecodis or a contributor with a request, and we will see what we can do.


diff --git a/src/lib/exhaleEnc.cpp b/src/lib/exhaleEnc.cpp index 37b6635..bf70afc 100644 --- a/src/lib/exhaleEnc.cpp +++ b/src/lib/exhaleEnc.cpp @@ -1181,7 +1181,7 @@ unsigned ExhaleEncoder::quantizationCoding () // apply MDCT quantization and en const uint8_t maxSfbLong = (samplingRate < 37566 ? 63 - (samplingRate >> 11) : brModeAndFsToMaxSfbLong (m_bitRateMode, samplingRate)); const uint8_t maxSfbShort = (samplingRate < 37566 ? 21 - (samplingRate >> 12) : brModeAndFsToMaxSfbShort(m_bitRateMode, samplingRate)); const uint16_t peakIndex = (shortWinCurr ? 0 : (m_specAnaCurr[ci] >> 5) & 2047); - const unsigned sfmBasedSfbStart = (shortWinCurr ? maxSfbShort - 4 : maxSfbLong - 6) + (meanSpecFlat[ci] >> 5); + const unsigned sfmBasedSfbStart = (shortWinCurr ? maxSfbShort - 2 + (meanSpecFlat[ci] >> 6) : maxSfbLong - 6 + (meanSpecFlat[ci] >> 5)); const unsigned targetBitCount25 = ((60000 + 20000 * m_bitRateMode) * nSamplesInFrame) / (samplingRate * ((grpData.numWindowGroups + 1) >> 1)); unsigned b = grpData.sfbsPerGroup - 1;