minor band M/S fix

This commit is contained in:
Christian R. Helmrich 2020-04-22 00:00:24 +02:00
parent ac1baf4923
commit 660cffb257
3 changed files with 12 additions and 3 deletions

View File

@ -15,5 +15,5 @@
# define EXHALELIB_VERSION_MINOR "0"
#endif
#ifndef EXHALELIB_VERSION_BUGFIX
# define EXHALELIB_VERSION_BUGFIX ".2" // "RC" or ".0", ".1", ...
# define EXHALELIB_VERSION_BUGFIX ".3" // "RC" or ".0", ".1", ...
#endif

View File

@ -13,7 +13,7 @@
0 ICON "exhaleApp.ico"
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,2
FILEVERSION 1,0,3
BEGIN
BLOCK "StringFileInfo"
BEGIN

View File

@ -451,7 +451,16 @@ unsigned StereoProcessor::applyPredJointStereo (int32_t* const mdctSpectrum1, in
int32_t* sfbMdctR = (alterPredDir ? &mdctSpectrum1[sfbStart] : &mdctSpectrum2[sfbStart]);
uint64_t sumAbsValR = 0;
if (alphaRe == 0) continue; // nothing to do, no pred.
if (alphaRe == 0)
{
if (realOnlyCalc) // update previous magnitude value
{
sfbMdctR += sfbWidth - 1;
prevResi = (grpSData[sfbEv] > 0 ? *sfbMdctR : int32_t (((int64_t) sfbMdctD[sfbWidth - 1] +
(alterPredDir ? 1 : -1) * (int64_t) *sfbMdctR + 1) >> 1));
}
continue; // nothing more to do, i.e., no prediction
}
if (realOnlyCalc) // real data, only MDCT is available
{