# HG changeset patch # User conrad # Date 1243027933 0 # Node ID 1afabe715e63c63b3d565810e0225d0d64ac743f # Parent 772a5a88c1bc2360a08f4a4ceff6585b9d8f9214 Move ALIGN macro to libavutil/common.h and use it in various places diff -r 772a5a88c1bc -r 1afabe715e63 postprocess.c --- a/postprocess.c Wed Apr 08 20:26:18 2009 +0000 +++ b/postprocess.c Fri May 22 21:32:13 2009 +0000 @@ -951,7 +951,7 @@ pp_context *pp_get_context(int width, int height, int cpuCaps){ PPContext *c= av_malloc(sizeof(PPContext)); - int stride= (width+15)&(~15); //assumed / will realloc if needed + int stride= FFALIGN(width, 16); //assumed / will realloc if needed int qpStride= (width+15)/16 + 2; //assumed / will realloc if needed memset(c, 0, sizeof(PPContext));