changeset 1071:0a48dd404167 libavcodec

* update cleanup rules (Steven M. Schultz) * memaling check (Steven M. Schultz) * unused var removed
author kabi
date Tue, 18 Feb 2003 09:33:21 +0000
parents 6da5ae9ee199
children 68d0a38bd802
files Makefile libpostproc/postprocess.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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));