From 372bb483c5abd4e87259dc516dd8c4e19118c5e6 Mon Sep 17 00:00:00 2001 From: Mark Spencer <markster@digium.com> Date: Sat, 27 Sep 2003 02:18:53 +0000 Subject: [PATCH] Fix iLBC quality issue git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1561 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- codecs/ilbc/iCBSearch.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/codecs/ilbc/iCBSearch.c b/codecs/ilbc/iCBSearch.c index f6ddaea895..5ec4e66cef 100755 --- a/codecs/ilbc/iCBSearch.c +++ b/codecs/ilbc/iCBSearch.c @@ -117,9 +117,8 @@ void iCBSearch( *ppe=0.0; pp=buf+LPC_FILTERORDER+lMem-lTarget; for (j=0; j<lTarget; j++) { - // XXXXXX is this the coder's intent? - //*ppe+=(*pp)*(*pp++); - *ppe+=(pp[0])*(pp[1]); + *ppe+=(*pp)*(*pp); + pp++; } if(*ppe>0.0) { @@ -297,9 +296,8 @@ void iCBSearch( pp=cbvectors+lMem-lTarget; for (j=0; j<lTarget; j++) { - // XXXXXX is this the coder's intent? - //*ppe+=(*pp)*(*pp++); - *ppe+=(pp[0])*(pp[1]); + *ppe+=(*pp)*(*pp); + pp++; } ppi = cbvectors + lMem - 1 - lTarget; -- GitLab