aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/pca.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-04 19:00:16 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-04 19:00:16 +0200
commitbeecfa81ac0b539bab3791b868392b625f599043 (patch)
treeacb0fad45323bcfce760d5a893b4fb772c261c27 /libavutil/pca.c
parent35e16b1babcb19225ea99eaf27340bd3361ba0a5 (diff)
downloadffmpeg-beecfa81ac0b539bab3791b868392b625f599043.tar.gz
avutil/pca: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/pca.c')
-rw-r--r--libavutil/pca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/pca.c b/libavutil/pca.c
index 311b6bc9cb..26d5bbb157 100644
--- a/libavutil/pca.c
+++ b/libavutil/pca.c
@@ -42,7 +42,7 @@ PCA *ff_pca_init(int n){
pca= av_mallocz(sizeof(*pca));
pca->n= n;
- pca->z = av_malloc(sizeof(*pca->z) * n);
+ pca->z = av_malloc_array(n, sizeof(*pca->z));
pca->count=0;
pca->covariance= av_calloc(n*n, sizeof(double));
pca->mean= av_calloc(n, sizeof(double));