changeset 128:1afabe715e63 libpostproc

Move ALIGN macro to libavutil/common.h and use it in various places
author conrad
date Fri, 22 May 2009 21:32:13 +0000
parents 772a5a88c1bc
children c78bbb57f0b9
files postprocess.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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));