mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-01-16 17:20:47 +01:00
Prevent negation of INT_MIN in CConcealment_ApplyRandomSign().
Bug: 146937601 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I9747110eca96b37604df996ef5e86ea58e2d8932
This commit is contained in:
parent
3070b0e81b
commit
9ab63ce151
@ -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
|
||||
@ -1618,7 +1618,7 @@ static void CConcealment_ApplyRandomSign(int randomPhase, FIXP_DBL *spec,
|
||||
}
|
||||
|
||||
if (packedSign & 0x1) {
|
||||
spec[i] = -spec[i];
|
||||
spec[i] = -fMax(spec[i], (FIXP_DBL)(MINVAL_DBL + 1));
|
||||
}
|
||||
packedSign >>= 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user