pca: use sizeof(variable) instead of sizeos(TYPE)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-04-15 20:26:34 +02:00
parent a4f03f082b
commit 003d497d31
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ PCA *ff_pca_init(int n){
if(n<=0)
return NULL;
pca= av_mallocz(sizeof(PCA));
pca= av_mallocz(sizeof(*pca));
pca->n= n;
pca->z = av_malloc(sizeof(*pca->z) * n);
pca->count=0;