Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-15 22:27:06 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-04-15 22:31:06 +0400
commit8a11114a790833f83e9e5aa3e7726aa96297df78 (patch)
tree57bdbd467dff5b96835e1890b17c4a08aefbe546 /libavutil/pca.c
parent003d497d31ff3d0dd0309d4694a5c853f415ffb9 (diff)
pca: use av_calloc()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/pca.c')
-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;
}