comparison 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
comparison
equal deleted inserted replaced
32746:2372e26d24fe 32747:170106dd2ef2
106 int width, int height, int d_width, int d_height, 106 int width, int height, int d_width, int d_height,
107 unsigned int flags, unsigned int outfmt){ 107 unsigned int flags, unsigned int outfmt){
108 int i, j; 108 int i, j;
109 109
110 vf->priv->pvStride= width; 110 vf->priv->pvStride= width;
111 vf->priv->pv= (void*)memalign(8, width*height*2*sizeof(int32_t)); 111 vf->priv->pv= av_malloc(width*height*2*sizeof(int32_t));
112 initPv(vf->priv, width, height); 112 initPv(vf->priv, width, height);
113 113
114 for(i=0; i<SUB_PIXELS; i++){ 114 for(i=0; i<SUB_PIXELS; i++){
115 double d= i/(double)SUB_PIXELS; 115 double d= i/(double)SUB_PIXELS;
116 double temp[4]; 116 double temp[4];
130 } 130 }
131 131
132 static void uninit(struct vf_instance *vf){ 132 static void uninit(struct vf_instance *vf){
133 if(!vf->priv) return; 133 if(!vf->priv) return;
134 134
135 free(vf->priv->pv); 135 av_free(vf->priv->pv);
136 vf->priv->pv= NULL; 136 vf->priv->pv= NULL;
137 137
138 free(vf->priv); 138 free(vf->priv);
139 vf->priv=NULL; 139 vf->priv=NULL;
140 } 140 }