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

diego subversion
Fri Oct 31 07:52:37 CET 2008


Author: diego
Date: Fri Oct 31 07:52:37 2008
New Revision: 15760

Log:
Initialize variable to silence the warning:
libavutil/pca.c:72: warning: ?k? may be used uninitialized in this function


Modified:
   trunk/libavutil/pca.c

Modified: trunk/libavutil/pca.c
==============================================================================
--- trunk/libavutil/pca.c	(original)
+++ trunk/libavutil/pca.c	Fri Oct 31 07:52:37 2008
@@ -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];
 




More information about the ffmpeg-cvslog mailing list