aboutsummaryrefslogtreecommitdiffstats
path: root/libSBRdec/src
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2019-08-09 17:09:00 +0200
committerJean-Michel Trivi <jmtrivi@google.com>2019-10-14 15:01:17 -0700
commitbedfd82356dafa1f51f360af29f302a672d6866c (patch)
treedf101af5cab89d28638588d46a55ca386004633e /libSBRdec/src
parentb1b306443a1cc0308fa563b40a281bae53346d01 (diff)
downloadfdk-aac-bedfd82356dafa1f51f360af29f302a672d6866c.tar.gz
fdk-aac-bedfd82356dafa1f51f360af29f302a672d6866c.tar.bz2
fdk-aac-bedfd82356dafa1f51f360af29f302a672d6866c.zip
Fix shift value assignment in addHighBandPart().
Bug: 131430997 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I69457c1b551e33e3ee9ef39b457b0f83de2e370e
Diffstat (limited to 'libSBRdec/src')
-rw-r--r--libSBRdec/src/hbe.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libSBRdec/src/hbe.cpp b/libSBRdec/src/hbe.cpp
index 1141e9c..2284c42 100644
--- a/libSBRdec/src/hbe.cpp
+++ b/libSBRdec/src/hbe.cpp
@@ -1,7 +1,7 @@
/* -----------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android
-© Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten
+© Copyright 1995 - 2019 Fraunhofer-Gesellschaft zur Förderung der angewandten
Forschung e.V. All rights reserved.
1. INTRODUCTION
@@ -1339,7 +1339,7 @@ static void addHighBandPart(FIXP_DBL g_r_m, FIXP_DBL g_i_m, INT g_e,
g_r_m = fMultDiv2(tmp_r, factor_m) << shift;
g_i_m = fMultDiv2(tmp_i, factor_m) << shift;
g_e = scale_factor_hbe - (g_e + factor_e + gammaCenter_e + add);
- fMax((INT)0, g_e);
+ g_e = fMax((INT)0, g_e);
*qmfHBEBufReal_F += g_r_m >> g_e;
*qmfHBEBufImag_F += g_i_m >> g_e;
}