mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
pca: use av_calloc()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
003d497d31
commit
8a11114a79
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user