[Asterisk-cvs] asterisk/codecs/ilbc iCBSearch.c,1.2,1.3

markster at lists.digium.com markster at lists.digium.com
Thu Sep 18 20:19:13 CDT 2003


Update of /usr/cvsroot/asterisk/codecs/ilbc
In directory mongoose.digium.com:/tmp/cvs-serv26315/codecs/ilbc

Modified Files:
	iCBSearch.c 
Log Message:
Code cleanups (bug #66)


Index: iCBSearch.c
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/ilbc/iCBSearch.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- iCBSearch.c	15 Aug 2003 04:38:39 -0000	1.2
+++ iCBSearch.c	19 Sep 2003 01:20:22 -0000	1.3
@@ -117,7 +117,9 @@
             *ppe=0.0; 
             pp=buf+LPC_FILTERORDER+lMem-lTarget; 
             for (j=0; j<lTarget; j++) { 
-                *ppe+=(*pp)*(*pp++); 
+		// XXXXXX is this the coder's intent?
+                //*ppe+=(*pp)*(*pp++); 
+                *ppe+=(pp[0])*(pp[1]); 
             } 
              
             if(*ppe>0.0) { 
@@ -295,7 +297,9 @@
  
             pp=cbvectors+lMem-lTarget; 
             for (j=0; j<lTarget; j++) { 
-                *ppe+=(*pp)*(*pp++); 
+		// XXXXXX is this the coder's intent?
+                //*ppe+=(*pp)*(*pp++); 
+                *ppe+=(pp[0])*(pp[1]); 
             } 
  
             ppi = cbvectors + lMem - 1 - lTarget; 




More information about the svn-commits mailing list