mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-01-22 11:59:34 +00:00
avutil/pca: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
35e16b1bab
commit
beecfa81ac
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user