aboutsummaryrefslogtreecommitdiffstats
path: root/libSBRenc/src
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2018-05-04 17:25:53 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-05-04 17:25:53 -0700
commit259a3c5bd5eb9be666f40dfb2978502533dd2b82 (patch)
tree8bf6f33f28355cd7dd6c4f5a01c5324a43ec66bc /libSBRenc/src
parentdf390e34924dd8ccf7d16f5f4781f9da523e225e (diff)
parent9ab67882eca7454dc001e158bc1e6e2219d6650b (diff)
downloadfdk-aac-259a3c5bd5eb9be666f40dfb2978502533dd2b82.tar.gz
fdk-aac-259a3c5bd5eb9be666f40dfb2978502533dd2b82.tar.bz2
fdk-aac-259a3c5bd5eb9be666f40dfb2978502533dd2b82.zip
FDKv2 additional fixes
am: 9ab67882ec Change-Id: Ia2ecfc503d1c2a429ad1c7dd5103263c02691a56
Diffstat (limited to 'libSBRenc/src')
-rw-r--r--libSBRenc/src/tran_det.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libSBRenc/src/tran_det.cpp b/libSBRenc/src/tran_det.cpp
index ba9ae68..b6f1b9f 100644
--- a/libSBRenc/src/tran_det.cpp
+++ b/libSBRenc/src/tran_det.cpp
@@ -366,7 +366,7 @@ static FIXP_DBL addHighbandEnergies(
accu += (EnergiesM[slotOut][j] >> scale[0]);
}
}
- nrgTotal = accu >> (scaleEnergies[1] - scale[1]);
+ nrgTotal = fAddSaturate(nrgTotal, accu >> (scaleEnergies[1] - scale[1]));
}
return (nrgTotal);