projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88ccaf6
)
Do not mix declarations and statements (by ramiro).
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 17 Aug 2008 15:35:55 +0000
(15:35 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 17 Aug 2008 15:35:55 +0000
(15:35 +0000)
Originally committed as revision 14806 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/pca.c
patch
|
blob
|
history
diff --git
a/libavutil/pca.c
b/libavutil/pca.c
index
b058665
..
6e798b6
100644
(file)
--- a/
libavutil/pca.c
+++ b/
libavutil/pca.c
@@
-126,11
+126,11
@@
int ff_pca(PCA *pca, double *eigenvector, double *eigenvalue){
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))