diff --git a/include/Release.htm b/include/Release.htm
index 8673b1f..fe58c8d 100644
--- a/include/Release.htm
+++ b/include/Release.htm
@@ -25,7 +25,7 @@
exhale - ecodis extended high-efficiency and low-complexity encoder
Software Release Notes, Version History, Known Issues, Upcoming Feature Roadmap
- The version of this distribution of the «exhale» software release is 1.2.1 (official public major release) from December 2023. Please check www.ecodis.de regularly for new versions of this software. A summary of each version up to this release, a list of known issues with this release, and a roadmap of additional functionality are provided below.
+ The version of this distribution of the «exhale» software release is 1.2.1 (official public minor release) from December 2023. Please check www.ecodis.de regularly for new versions of this software. A summary of each version up to this release, a list of known issues with this release, and a roadmap of additional functionality are provided below.
Chronological Version History
Version 1.2.1 Dec. 2023, this release
diff --git a/src/lib/exhaleEnc.cpp b/src/lib/exhaleEnc.cpp
index 71faf3d..90294b7 100644
--- a/src/lib/exhaleEnc.cpp
+++ b/src/lib/exhaleEnc.cpp
@@ -1186,8 +1186,8 @@ unsigned ExhaleEncoder::quantizationCoding () // apply MDCT quantization and en
memset (&arithTuples[lastSOff], 1, (swbM1Size >> 1) * sizeof (char));
}
// correct next scale factor if the reduction exceeds 60
- if ((b + 1u < grpData.sfbsPerGroup) && (sfIdxPred < UCHAR_MAX) && (grpLength == 1) &&
- (grpScaleFacs[b] > grpScaleFacs[b + 1] + INDEX_OFFSET))
+ if ((b + 2u < grpData.sfbsPerGroup) && (sfIdxPred < UCHAR_MAX) && (grpScaleFacs[b + 1]) &&
+ (sfIdxPred > grpScaleFacs[b + 1] + INDEX_OFFSET))
{
grpScaleFacs[b + 1] = grpScaleFacs[b] - INDEX_OFFSET; // avoid preset-9 zero-out
}
|