Revision ca390e72 libavcodec/libpostproc/postprocess.c

View differences:

libavcodec/libpostproc/postprocess.c
83 83

  
84 84
#include "mangle.h" //FIXME should be supressed
85 85

  
86
#ifndef HAVE_MEMALIGN
87
#define memalign(a,b) malloc(b)
88
#endif
89

  
86 90
#define MIN(a,b) ((a) > (b) ? (b) : (a))
87 91
#define MAX(a,b) ((a) < (b) ? (b) : (a))
88 92
#define ABS(a) ((a) > 0 ? (a) : (-(a)))
......
749 753

  
750 754
pp_context_t *pp_get_context(int width, int height, int cpuCaps){
751 755
	PPContext *c= memalign(32, sizeof(PPContext));
752
	int i;
753 756
	int stride= (width+15)&(~15); //assumed / will realloc if needed
754 757
        
755 758
	memset(c, 0, sizeof(PPContext));

Also available in: Unified diff