diff --git a/silk/MacroCount.h b/silk/MacroCount.h index 584f4b7b71f170c5bf5adee856061f0e0b4b5271..2829e8ccb4dbf666a3b6e05692bb2d1ead4c50ac 100644 --- a/silk/MacroCount.h +++ b/silk/MacroCount.h @@ -477,7 +477,7 @@ static inline opus_int64 silk_abs_int64(opus_int64 a){ #undef silk_abs_int32 static inline opus_int32 silk_abs_int32(opus_int32 a){ ops_count += 1; - return abs(a); + return silk_abs(a); } diff --git a/silk/MacroDebug.h b/silk/MacroDebug.h index 7dcd187ed59d5ff11b8dfe50f790f10a20f77e0a..ecd90bc4de1df4acdfbd4ed2cd835d4e7c774198 100644 --- a/silk/MacroDebug.h +++ b/silk/MacroDebug.h @@ -893,7 +893,7 @@ static inline opus_int32 silk_abs_int32_(opus_int32 a, char *file, int line){ silk_assert( 0 ); #endif } - return abs(a); + return silk_abs(a); } #undef silk_CHECK_FIT8 diff --git a/silk/PLC.c b/silk/PLC.c index 2d053545f197cbdddb9b228f67253f6ec7d87aba..1b93d06e653e6675f4a40c0450f9f36ca31def4a 100644 --- a/silk/PLC.c +++ b/silk/PLC.c @@ -45,7 +45,7 @@ static inline void silk_PLC_update( static inline void silk_PLC_conceal( silk_decoder_state *psDec, /* I/O Decoder state */ silk_decoder_control *psDecCtrl, /* I/O Decoder control */ - opus_int16 signal[] /* O LPC residual signal */ + opus_int16 frame[] /* O LPC residual signal */ ); diff --git a/silk/SigProc_FIX.h b/silk/SigProc_FIX.h index ab9c360972d54afe0265e62105d763aa07260754..72ec26a67f2f44a3c1285f701a2cd591e0a77da9 100644 --- a/silk/SigProc_FIX.h +++ b/silk/SigProc_FIX.h @@ -37,7 +37,6 @@ extern "C" #define SILK_MAX_ORDER_LPC 16 /* max order of the LPC analysis in schur() and k2a() */ -#include <stdlib.h> /* for abs() */ #include <string.h> /* for memset(), memcpy(), memmove() */ #include "typedef.h" #include "resampler_structs.h" diff --git a/silk/VAD.c b/silk/VAD.c index 8c8a3a4df03b3be4599a6c643dcc2d1c6d90051c..bac89b44477187c83a4a2d105d738b824f412c35 100644 --- a/silk/VAD.c +++ b/silk/VAD.c @@ -29,7 +29,6 @@ POSSIBILITY OF SUCH DAMAGE. #include "config.h" #endif -#include <stdlib.h> #include "main.h" /* Silk VAD noise level estimation */