From ef516f73778aee928826e7158ad0506d26ed9ab0 Mon Sep 17 00:00:00 2001 From: David Conrad Date: Fri, 22 May 2009 21:32:13 +0000 Subject: Move ALIGN macro to libavutil/common.h and use it in various places Originally committed as revision 18898 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libpostproc/postprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpostproc/postprocess.c') diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index b5b6649..179fd7e 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -951,7 +951,7 @@ static const AVClass av_codec_context_class = { "Postproc", context_to_name, NUL 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)); -- cgit v1.1