diff options
author | Fraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de> | 2019-09-20 14:01:01 +0200 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2019-10-15 15:48:46 -0700 |
commit | 4c839c6a90d800d60f66f848f437ccdd800953a9 (patch) | |
tree | 3dc762a515d073144c5424e973b4de0b1a457a9a /libAACdec/src | |
parent | 1b4a3bedbb9d512c929c2fa191cc44c8dae8bce9 (diff) | |
download | fdk-aac-4c839c6a90d800d60f66f848f437ccdd800953a9.tar.gz fdk-aac-4c839c6a90d800d60f66f848f437ccdd800953a9.tar.bz2 fdk-aac-4c839c6a90d800d60f66f848f437ccdd800953a9.zip |
Fix integer overflow in E_UTIL_preemph().
Bug: 131430997
Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc
Change-Id: Iaaa0630e59d8e83e58b25168a3db04304485429b
Diffstat (limited to 'libAACdec/src')
-rw-r--r-- | libAACdec/src/usacdec_acelp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libAACdec/src/usacdec_acelp.cpp b/libAACdec/src/usacdec_acelp.cpp index c836c6a..1ac8c9f 100644 --- a/libAACdec/src/usacdec_acelp.cpp +++ b/libAACdec/src/usacdec_acelp.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 @@ -131,7 +131,7 @@ void E_UTIL_preemph(const FIXP_DBL *in, FIXP_DBL *out, INT L) { int i; for (i = 0; i < L; i++) { - out[i] = in[i] - fMult(PREEMPH_FAC, in[i - 1]); + out[i] = fAddSaturate(in[i], -fMult(PREEMPH_FAC, in[i - 1])); } return; |