[FFmpeg-cvslog] pca: use sizeof(variable) instead of sizeos(TYPE)

Michael Niedermayer git at videolan.org
Mon Apr 15 20:32:37 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Apr 15 20:26:34 2013 +0200| [003d497d31ff3d0dd0309d4694a5c853f415ffb9] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=003d497d31ff3d0dd0309d4694a5c853f415ffb9
---

 libavutil/pca.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/pca.c b/libavutil/pca.c
index 54927a2..c2a9e29 100644
--- a/libavutil/pca.c
+++ b/libavutil/pca.c
@@ -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;



More information about the ffmpeg-cvslog mailing list