aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-15 20:27:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-15 20:31:06 +0200
commit8a11114a790833f83e9e5aa3e7726aa96297df78 (patch)
tree57bdbd467dff5b96835e1890b17c4a08aefbe546 /libavutil
parent003d497d31ff3d0dd0309d4694a5c853f415ffb9 (diff)
downloadffmpeg-8a11114a790833f83e9e5aa3e7726aa96297df78.tar.gz
pca: use av_calloc()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/pca.c4
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;
}