mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-06-05 22:39:13 +02:00
Fix integer overflow in E_UTIL_preemph().
Bug: 131430997 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Iaaa0630e59d8e83e58b25168a3db04304485429b
This commit is contained in:
committed by
Jean-Michel Trivi
parent
1b4a3bedbb
commit
4c839c6a90
@@ -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;
|
||||
|
Reference in New Issue
Block a user