[FFmpeg-soc] [soc]: r466 - in qcelp: qcelpdata.h qcelpdec.c

reynaldo subversion at mplayerhq.hu
Tue Jul 17 21:53:18 CEST 2007


Author: reynaldo
Date: Tue Jul 17 21:53:18 2007
New Revision: 466

Log:
nit, PI->M_PI

Modified:
   qcelp/qcelpdata.h
   qcelp/qcelpdec.c

Modified: qcelp/qcelpdata.h
==============================================================================
--- qcelp/qcelpdata.h	(original)
+++ qcelp/qcelpdata.h	Tue Jul 17 21:53:18 2007
@@ -25,9 +25,6 @@
  */
 
 #define FXQ(v)  (roundf(16384.0*v)/16384.0)
-#ifndef PI
-#define PI 3.141592653
-#endif
 
 typedef enum
 {

Modified: qcelp/qcelpdec.c
==============================================================================
--- qcelp/qcelpdec.c	(original)
+++ qcelp/qcelpdec.c	Tue Jul 17 21:53:18 2007
@@ -273,7 +273,7 @@ static int qcelp_compute_svector(qcelp_p
  */
 static float qcelp_hammsinc(int i)
 {
-    return (sin(PI*i)/(PI*i))*(0.5+0.46*cos(PI*i/4));
+    return (sin(M_PI*i)/(M_PI*i))*(0.5+0.46*cos(M_PI*i/4));
 }
 
 /**



More information about the FFmpeg-soc mailing list