# HG changeset patch # User kabi # Date 1045560801 0 # Node ID 0a48dd404167ec7a2ceeb3916b94b8e572fa1340 # Parent 6da5ae9ee1996f8fb598e5cbd9fa7e6f2da49eef * update cleanup rules (Steven M. Schultz) * memaling check (Steven M. Schultz) * unused var removed diff -r 6da5ae9ee199 -r 0a48dd404167 Makefile --- a/Makefile Sun Feb 16 23:05:38 2003 +0000 +++ b/Makefile Tue Feb 18 09:33:21 2003 +0000 @@ -168,6 +168,7 @@ ps2/*.o ps2/*~ \ liba52/*.o liba52/*~ \ apiexample $(TESTS) + make -C libpostproc clean distclean: clean rm -f Makefile.bak .depend diff -r 6da5ae9ee199 -r 0a48dd404167 libpostproc/postprocess.c --- a/libpostproc/postprocess.c Sun Feb 16 23:05:38 2003 +0000 +++ b/libpostproc/postprocess.c Tue Feb 18 09:33:21 2003 +0000 @@ -83,6 +83,10 @@ #include "mangle.h" //FIXME should be supressed +#ifndef HAVE_MEMALIGN +#define memalign(a,b) malloc(b) +#endif + #define MIN(a,b) ((a) > (b) ? (b) : (a)) #define MAX(a,b) ((a) < (b) ? (b) : (a)) #define ABS(a) ((a) > 0 ? (a) : (-(a))) @@ -749,7 +753,6 @@ pp_context_t *pp_get_context(int width, int height, int cpuCaps){ PPContext *c= memalign(32, sizeof(PPContext)); - int i; int stride= (width+15)&(~15); //assumed / will realloc if needed memset(c, 0, sizeof(PPContext));