diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2011-01-30 22:57:16 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2011-02-15 19:12:50 +0200 |
commit | a353f11132a6716296be1a31b6ada28b8122f914 (patch) | |
tree | 371927bd36f480deeb28c84b41770b28b322b736 /libmpcodecs/vf_sab.c | |
parent | 005bbf0da4813c7915a9a9ce9b4697a0379f3a16 (diff) | |
download | mpv-a353f11132a6716296be1a31b6ada28b8122f914.tar.bz2 mpv-a353f11132a6716296be1a31b6ada28b8122f914.tar.xz |
libmpcodecs/vf_*.c: Replace memalign() by av_malloc()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32834 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix postprocessing and perspective filters on x86-64
(missing libavutil/mem.h include).
Original patch by Reinhard Tartler
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32835 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_sab.c')
-rw-r--r-- | libmpcodecs/vf_sab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpcodecs/vf_sab.c b/libmpcodecs/vf_sab.c index 7dccd21d10..7ab76ffbe9 100644 --- a/libmpcodecs/vf_sab.c +++ b/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; } |