mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Fix iLBC quality issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -117,9 +117,8 @@ void iCBSearch(
|
|||||||
*ppe=0.0;
|
*ppe=0.0;
|
||||||
pp=buf+LPC_FILTERORDER+lMem-lTarget;
|
pp=buf+LPC_FILTERORDER+lMem-lTarget;
|
||||||
for (j=0; j<lTarget; j++) {
|
for (j=0; j<lTarget; j++) {
|
||||||
// XXXXXX is this the coder's intent?
|
*ppe+=(*pp)*(*pp);
|
||||||
//*ppe+=(*pp)*(*pp++);
|
pp++;
|
||||||
*ppe+=(pp[0])*(pp[1]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(*ppe>0.0) {
|
if(*ppe>0.0) {
|
||||||
@@ -297,9 +296,8 @@ void iCBSearch(
|
|||||||
|
|
||||||
pp=cbvectors+lMem-lTarget;
|
pp=cbvectors+lMem-lTarget;
|
||||||
for (j=0; j<lTarget; j++) {
|
for (j=0; j<lTarget; j++) {
|
||||||
// XXXXXX is this the coder's intent?
|
*ppe+=(*pp)*(*pp);
|
||||||
//*ppe+=(*pp)*(*pp++);
|
pp++;
|
||||||
*ppe+=(pp[0])*(pp[1]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ppi = cbvectors + lMem - 1 - lTarget;
|
ppi = cbvectors + lMem - 1 - lTarget;
|
||||||
|
Reference in New Issue
Block a user