aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/pca.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-10-31 06:52:37 +0000
committerDiego Biurrun <diego@biurrun.de>2008-10-31 06:52:37 +0000
commitecad9872fb8c50dc88e8298535603e04fd9cf8b4 (patch)
treee9c692cdce8a9624f73cd1bbe876062309761fb3 /libavutil/pca.c
parentcb377ec55e975119312c3cc72b9e8924cbbcfc6e (diff)
downloadffmpeg-ecad9872fb8c50dc88e8298535603e04fd9cf8b4.tar.gz
Initialize variable to silence the warning:
libavutil/pca.c:72: warning: ‘k’ may be used uninitialized in this function Originally committed as revision 15760 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/pca.c')
-rw-r--r--libavutil/pca.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/pca.c b/libavutil/pca.c
index f2542f2be1..d21814cdff 100644
--- a/libavutil/pca.c
+++ b/libavutil/pca.c
@@ -67,7 +67,8 @@ void ff_pca_add(PCA *pca, double *v){
}
int ff_pca(PCA *pca, double *eigenvector, double *eigenvalue){
- int i, j, k, pass;
+ int i, j, pass;
+ int k=0;
const int n= pca->n;
double z[n];