aboutsummaryrefslogtreecommitdiffstats
path: root/libSBRdec/src/HFgen_preFlat.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-02-15 03:18:33 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-02-15 03:18:33 +0000
commit4422539a921bc39694a2ae210ce69e4410d2c235 (patch)
tree44d6676c2975eec965bb3e6c2562e1632eaf4385 /libSBRdec/src/HFgen_preFlat.cpp
parent67aa964d429b7bfe242b28cd223ae1dddf8e3a78 (diff)
parente016635f0d3a5c7532b00711ce461f97a13f7bc2 (diff)
downloadfdk-aac-4422539a921bc39694a2ae210ce69e4410d2c235.tar.gz
fdk-aac-4422539a921bc39694a2ae210ce69e4410d2c235.tar.bz2
fdk-aac-4422539a921bc39694a2ae210ce69e4410d2c235.zip
Snap for 6210127 from e016635f0d3a5c7532b00711ce461f97a13f7bc2 to rvc-release
Change-Id: Icca87a4feea92b453adc049922c543eb3bf048fd
Diffstat (limited to 'libSBRdec/src/HFgen_preFlat.cpp')
-rw-r--r--libSBRdec/src/HFgen_preFlat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libSBRdec/src/HFgen_preFlat.cpp b/libSBRdec/src/HFgen_preFlat.cpp
index 268011e..ad4caba 100644
--- a/libSBRdec/src/HFgen_preFlat.cpp
+++ b/libSBRdec/src/HFgen_preFlat.cpp
@@ -897,10 +897,10 @@ void sbrDecoder_calculateGainVec(FIXP_DBL **sourceBufferReal,
for (i = startSample; i < stopSample; i++) {
maxVal |=
(FIXP_DBL)((LONG)(sourceBufferReal[i][loBand]) ^
- ((LONG)sourceBufferReal[i][loBand] >> (SAMPLE_BITS - 1)));
+ ((LONG)sourceBufferReal[i][loBand] >> (DFRACT_BITS - 1)));
maxVal |=
(FIXP_DBL)((LONG)(sourceBufferImag[i][loBand]) ^
- ((LONG)sourceBufferImag[i][loBand] >> (SAMPLE_BITS - 1)));
+ ((LONG)sourceBufferImag[i][loBand] >> (DFRACT_BITS - 1)));
}
if (maxVal != FL2FX_DBL(0.0f)) {