mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-23 07:42:51 +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…
Reference in New Issue
Block a user