diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-28 16:13:18 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-28 16:17:18 +0200 |
commit | b28f470df09cc0d339d8b947818db0dfcc9a7f74 (patch) | |
tree | b1c5062e7da730076cdc4abd4a6b201790a3f470 /libavutil | |
parent | 04152a31cb41a7ca3cc0bde9d962454fc30bab9c (diff) | |
download | ffmpeg-b28f470df09cc0d339d8b947818db0dfcc9a7f74.tar.gz |
avutil/pca: Make argument of ff_pca_add() const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/pca.c | 2 | ||||
-rw-r--r-- | libavutil/pca.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/pca.c b/libavutil/pca.c index 26d5bbb157..f7ae350b48 100644 --- a/libavutil/pca.c +++ b/libavutil/pca.c @@ -57,7 +57,7 @@ void ff_pca_free(PCA *pca){ av_free(pca); } -void ff_pca_add(PCA *pca, double *v){ +void ff_pca_add(PCA *pca, const double *v){ int i, j; const int n= pca->n; diff --git a/libavutil/pca.h b/libavutil/pca.h index 00ddd60c7e..992bb2eb25 100644 --- a/libavutil/pca.h +++ b/libavutil/pca.h @@ -29,7 +29,7 @@ struct PCA *ff_pca_init(int n); void ff_pca_free(struct PCA *pca); -void ff_pca_add(struct PCA *pca, double *v); +void ff_pca_add(struct PCA *pca, const double *v); int ff_pca(struct PCA *pca, double *eigenvector, double *eigenvalue); #endif /* AVUTIL_PCA_H */ |