WebRtcIlbcfix_EnhancerInterface: Let input array be const

NOTRY=true
BUG=chromium:617124

Review-Url: https://codereview.webrtc.org/2297873003
Cr-Commit-Position: refs/heads/master@{#14029}
This commit is contained in:
kwiberg
2016-09-01 12:47:17 -07:00
committed by Commit bot
parent a70856c0bf
commit affcac4d22
2 changed files with 11 additions and 11 deletions

View File

@ -30,11 +30,11 @@
* interface for enhancer
*---------------------------------------------------------------*/
size_t WebRtcIlbcfix_EnhancerInterface( /* (o) Estimated lag in end of in[] */
int16_t *out, /* (o) enhanced signal */
int16_t *in, /* (i) unenhanced signal */
IlbcDecoder *iLBCdec_inst /* (i) buffers etc */
){
size_t // (o) Estimated lag in end of in[]
WebRtcIlbcfix_EnhancerInterface(
int16_t* out, // (o) enhanced signal
const int16_t* in, // (i) unenhanced signal
IlbcDecoder* iLBCdec_inst) { // (i) buffers etc
size_t iblock;
size_t lag=20, tlag=20;
size_t inLen=iLBCdec_inst->blockl+120;
@ -54,7 +54,7 @@ size_t WebRtcIlbcfix_EnhancerInterface( /* (o) Estimated lag in end of in[] */
int16_t *tmpW16ptr;
size_t startPos;
int16_t *plc_pred;
int16_t *target, *regressor;
const int16_t *target, *regressor;
int16_t max16;
int shifts;
int32_t ener;