summaryrefslogtreecommitdiff
path: root/libavfilter/libmpcodecs/vf_sab.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-01-28 21:54:16 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-01-28 21:55:23 +0100
commit55fa97e215c40a1f7cdd2ad3ca4c098a3caa4c28 (patch)
treebd3838ea6b89f2995d89d9c63c0ca2ff14880e53 /libavfilter/libmpcodecs/vf_sab.c
parent609bdf813d0ff3d03f8938181151f4c867c4ae65 (diff)
Remove useage of memalign() from libmpcodecs, not all platforms have memalign().
Diffstat (limited to 'libavfilter/libmpcodecs/vf_sab.c')
-rw-r--r--libavfilter/libmpcodecs/vf_sab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/libmpcodecs/vf_sab.c b/libavfilter/libmpcodecs/vf_sab.c
index 75834dc858..377c9e33a8 100644
--- a/libavfilter/libmpcodecs/vf_sab.c
+++ b/libavfilter/libmpcodecs/vf_sab.c
@@ -95,7 +95,7 @@ static int allocStuff(FilterParam *f, int width, int height){
SwsVector *vec;
SwsFilter swsF;
int i,x,y;
- f->preFilterBuf= (uint8_t*)memalign(8, stride*height);
+ f->preFilterBuf= av_malloc(stride*height);
f->preFilterStride= stride;
vec = sws_getGaussianVec(f->preFilterRadius, f->quality);
@@ -119,7 +119,7 @@ static int allocStuff(FilterParam *f, int width, int height){
vec = sws_getGaussianVec(f->radius, f->quality);
f->distWidth= vec->length;
f->distStride= (vec->length+7)&~7;
- f->distCoeff= (int32_t*)memalign(8, f->distWidth*f->distStride*sizeof(int32_t));
+ f->distCoeff= av_malloc(f->distWidth*f->distStride*sizeof(int32_t));
for(y=0; y<vec->length; y++){
for(x=0; x<vec->length; x++){
@@ -153,10 +153,10 @@ static void freeBuffers(FilterParam *f){
if(f->preFilterContext) sws_freeContext(f->preFilterContext);
f->preFilterContext=NULL;
- free(f->preFilterBuf);
+ av_free(f->preFilterBuf);
f->preFilterBuf=NULL;
- free(f->distCoeff);
+ av_free(f->distCoeff);
f->distCoeff=NULL;
}