* update cleanup rules (Steven M. Schultz)

* memaling check  (Steven M. Schultz)
* unused var removed

Originally committed as revision 1589 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Zdenek Kabelac 2003-02-18 09:33:21 +00:00
parent 7604246d1a
commit ca390e727d
2 changed files with 5 additions and 1 deletions

View File

@ -168,6 +168,7 @@ clean:
ps2/*.o ps2/*~ \ ps2/*.o ps2/*~ \
liba52/*.o liba52/*~ \ liba52/*.o liba52/*~ \
apiexample $(TESTS) apiexample $(TESTS)
make -C libpostproc clean
distclean: clean distclean: clean
rm -f Makefile.bak .depend rm -f Makefile.bak .depend

View File

@ -83,6 +83,10 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks
#include "mangle.h" //FIXME should be supressed #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 MIN(a,b) ((a) > (b) ? (b) : (a))
#define MAX(a,b) ((a) < (b) ? (b) : (a)) #define MAX(a,b) ((a) < (b) ? (b) : (a))
#define ABS(a) ((a) > 0 ? (a) : (-(a))) #define ABS(a) ((a) > 0 ? (a) : (-(a)))
@ -749,7 +753,6 @@ static void reallocBuffers(PPContext *c, int width, int height, int stride){
pp_context_t *pp_get_context(int width, int height, int cpuCaps){ pp_context_t *pp_get_context(int width, int height, int cpuCaps){
PPContext *c= memalign(32, sizeof(PPContext)); PPContext *c= memalign(32, sizeof(PPContext));
int i;
int stride= (width+15)&(~15); //assumed / will realloc if needed int stride= (width+15)&(~15); //assumed / will realloc if needed
memset(c, 0, sizeof(PPContext)); memset(c, 0, sizeof(PPContext));