[FFmpeg-cvslog] r14806 - trunk/libavutil/pca.c

michael subversion
Sun Aug 17 17:35:55 CEST 2008


Author: michael
Date: Sun Aug 17 17:35:55 2008
New Revision: 14806

Log:
Dont mix declarations and statements (by ramiro).


Modified:
   trunk/libavutil/pca.c

Modified: trunk/libavutil/pca.c
==============================================================================
--- trunk/libavutil/pca.c	(original)
+++ trunk/libavutil/pca.c	Sun Aug 17 17:35:55 2008
@@ -126,11 +126,11 @@ int ff_pca(PCA *pca, double *eigenvector
                 z[i] -= t*covar;
                 z[j] += t*covar;
 
-#define ROTATE(a,i,j,k,l)\
+#define ROTATE(a,i,j,k,l) {\
     double g=a[j + i*n];\
     double h=a[l + k*n];\
     a[j + i*n]=g-s*(h+g*tau);\
-    a[l + k*n]=h+s*(g-h*tau);
+    a[l + k*n]=h+s*(g-h*tau); }
                 for(k=0; k<n; k++) {
                     if(k!=i && k!=j){
                         ROTATE(pca->covariance,FFMIN(k,i),FFMAX(k,i),FFMIN(k,j),FFMAX(k,j))




More information about the ffmpeg-cvslog mailing list