diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-04 19:00:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-04 19:00:16 +0200 |
commit | beecfa81ac0b539bab3791b868392b625f599043 (patch) | |
tree | acb0fad45323bcfce760d5a893b4fb772c261c27 | |
parent | 35e16b1babcb19225ea99eaf27340bd3361ba0a5 (diff) | |
download | ffmpeg-streaming-beecfa81ac0b539bab3791b868392b625f599043.zip ffmpeg-streaming-beecfa81ac0b539bab3791b868392b625f599043.tar.gz |
avutil/pca: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/pca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/pca.c b/libavutil/pca.c index 311b6bc..26d5bbb 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)); |