diff libmpcodecs/vf_perspective.c @ 32747:170106dd2ef2

Replace memalign() by av_malloc() in libmpcodecs. as it is not available in all platforms ported from ffmpeg
author michael
date Sun, 30 Jan 2011 22:57:16 +0000
parents 7af3e6f901fd
children d6bc33320ae0
line wrap: on
line diff
--- a/libmpcodecs/vf_perspective.c	Sun Jan 30 10:40:08 2011 +0000
+++ b/libmpcodecs/vf_perspective.c	Sun Jan 30 22:57:16 2011 +0000
@@ -108,7 +108,7 @@
     int i, j;
 
     vf->priv->pvStride= width;
-    vf->priv->pv= (void*)memalign(8, width*height*2*sizeof(int32_t));
+    vf->priv->pv= av_malloc(width*height*2*sizeof(int32_t));
     initPv(vf->priv, width, height);
 
     for(i=0; i<SUB_PIXELS; i++){
@@ -132,7 +132,7 @@
 static void uninit(struct vf_instance *vf){
     if(!vf->priv) return;
 
-    free(vf->priv->pv);
+    av_free(vf->priv->pv);
     vf->priv->pv= NULL;
 
     free(vf->priv);