]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libpostproc/postprocess.c
Move ALIGN macro to libavutil/common.h and use it in various places
[frescor/ffmpeg.git] / libpostproc / postprocess.c
index b5b6649f931cb17661eebe58f980d34d30160932..179fd7ec9880bac3f8d1998401b872b9d1b3bbc7 100644 (file)
@@ -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));