Skip to content
Snippets Groups Projects
Commit 7b0a6612 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Do not mix declarations and statements (by ramiro).

Originally committed as revision 14806 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 88ccaf6f
No related branches found
No related tags found
No related merge requests found
...@@ -126,11 +126,11 @@ int ff_pca(PCA *pca, double *eigenvector, double *eigenvalue){ ...@@ -126,11 +126,11 @@ int ff_pca(PCA *pca, double *eigenvector, double *eigenvalue){
z[i] -= t*covar; z[i] -= t*covar;
z[j] += 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 g=a[j + i*n];\
double h=a[l + k*n];\ double h=a[l + k*n];\
a[j + i*n]=g-s*(h+g*tau);\ 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++) { for(k=0; k<n; k++) {
if(k!=i && k!=j){ if(k!=i && k!=j){
ROTATE(pca->covariance,FFMIN(k,i),FFMAX(k,i),FFMIN(k,j),FFMAX(k,j)) ROTATE(pca->covariance,FFMIN(k,i),FFMAX(k,i),FFMIN(k,j),FFMAX(k,j))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment