diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-02-18 09:33:21 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-02-18 09:33:21 +0000 |
commit | ca390e727d165bf80445035c4b67a7239fdc87c0 (patch) | |
tree | 7af08e25c9c425a7fa9eb2ea20256e67e21fe40f /libavcodec/libpostproc | |
parent | 7604246d1a27a0c32e036bb01704787c435fa153 (diff) | |
download | ffmpeg-ca390e727d165bf80445035c4b67a7239fdc87c0.tar.gz |
* 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
Diffstat (limited to 'libavcodec/libpostproc')
-rw-r--r-- | libavcodec/libpostproc/postprocess.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/libpostproc/postprocess.c b/libavcodec/libpostproc/postprocess.c index d9261b4b1c..cf93fa8505 100644 --- a/libavcodec/libpostproc/postprocess.c +++ b/libavcodec/libpostproc/postprocess.c @@ -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 +#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 @@ static void reallocBuffers(PPContext *c, int width, int height, int stride){ 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)); |