mirror of https://git.ffmpeg.org/ffmpeg.git
pca: use sizeof(variable) instead of sizeos(TYPE)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a4f03f082b
commit
003d497d31
|
@ -40,7 +40,7 @@ PCA *ff_pca_init(int n){
|
||||||
if(n<=0)
|
if(n<=0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
pca= av_mallocz(sizeof(PCA));
|
pca= av_mallocz(sizeof(*pca));
|
||||||
pca->n= n;
|
pca->n= n;
|
||||||
pca->z = av_malloc(sizeof(*pca->z) * n);
|
pca->z = av_malloc(sizeof(*pca->z) * n);
|
||||||
pca->count=0;
|
pca->count=0;
|
||||||
|
|
Loading…
Reference in New Issue