Commit 48cfc02c authored by Martin Storsjo's avatar Martin Storsjo

Revert parts of "Use saturating adds to avoid overflow"

This reverts commit 839ae290.

This change is no longer necessary on top of the new upstream,
I cannot reproduce the crash that this fixed with the new upstream.
parent dc0de33e
...@@ -1150,8 +1150,8 @@ static INT FDKaacEnc_AutoToParcor( ...@@ -1150,8 +1150,8 @@ static INT FDKaacEnc_AutoToParcor(
for(j=numOfCoeff-i-1; j>=0; j--) { for(j=numOfCoeff-i-1; j>=0; j--) {
FIXP_DBL accu1 = fMult(tmp, input[j]); FIXP_DBL accu1 = fMult(tmp, input[j]);
FIXP_DBL accu2 = fMult(tmp, workBuffer[j]); FIXP_DBL accu2 = fMult(tmp, workBuffer[j]);
workBuffer[j] = fAddSaturate(workBuffer[j], accu1); workBuffer[j] += accu1;
input[j] = fAddSaturate(input[j], accu2); input[j] += accu2;
} }
workBuffer++; workBuffer++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment