diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-15 20:27:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-15 20:31:06 +0200 |
commit | 8a11114a790833f83e9e5aa3e7726aa96297df78 (patch) | |
tree | 57bdbd467dff5b96835e1890b17c4a08aefbe546 /libavutil/pca.c | |
parent | 003d497d31ff3d0dd0309d4694a5c853f415ffb9 (diff) | |
download | ffmpeg-8a11114a790833f83e9e5aa3e7726aa96297df78.tar.gz |
pca: use av_calloc()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/pca.c')
-rw-r--r-- | libavutil/pca.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/pca.c b/libavutil/pca.c index c2a9e296b7..311b6bc9cb 100644 --- a/libavutil/pca.c +++ b/libavutil/pca.c @@ -44,8 +44,8 @@ PCA *ff_pca_init(int n){ pca->n= n; pca->z = av_malloc(sizeof(*pca->z) * n); pca->count=0; - pca->covariance= av_mallocz(sizeof(double)*n*n); - pca->mean= av_mallocz(sizeof(double)*n); + pca->covariance= av_calloc(n*n, sizeof(double)); + pca->mean= av_calloc(n, sizeof(double)); return pca; } |