diff libpostproc/postprocess.c @ 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 8528d0b9e508
children 7f5587a7dd10
line wrap: on
line diff
--- 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));