summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2012-11-01 11:11:46 +0200
committerMartin Storsjo <martin@martin.st>2012-11-01 11:30:40 +0200
commit48cfc02cbf7016a4c1e3d537fa0bba4278f2c173 (patch)
tree884394a8bd428d7b46c5a402176e4383b3bbc5eb
parentdc0de33e863cb55f500f9cbf113371d1ec0f601a (diff)
downloadfdk-aac-48cfc02cbf7016a4c1e3d537fa0bba4278f2c173.tar.gz
fdk-aac-48cfc02cbf7016a4c1e3d537fa0bba4278f2c173.tar.bz2
fdk-aac-48cfc02cbf7016a4c1e3d537fa0bba4278f2c173.zip
Revert parts of "Use saturating adds to avoid overflow"
This reverts commit 839ae290c1f5a263613bea1a5fde863e757a8849. This change is no longer necessary on top of the new upstream, I cannot reproduce the crash that this fixed with the new upstream.
-rw-r--r--libAACenc/src/aacenc_tns.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libAACenc/src/aacenc_tns.cpp b/libAACenc/src/aacenc_tns.cpp
index d6339fc..00b2bca 100644
--- a/libAACenc/src/aacenc_tns.cpp
+++ b/libAACenc/src/aacenc_tns.cpp
@@ -1150,8 +1150,8 @@ static INT FDKaacEnc_AutoToParcor(
for(j=numOfCoeff-i-1; j>=0; j--) {
FIXP_DBL accu1 = fMult(tmp, input[j]);
FIXP_DBL accu2 = fMult(tmp, workBuffer[j]);
- workBuffer[j] = fAddSaturate(workBuffer[j], accu1);
- input[j] = fAddSaturate(input[j], accu2);
+ workBuffer[j] += accu1;
+ input[j] += accu2;
}
workBuffer++;