diff options
author | David Conrad <lessen42@gmail.com> | 2009-05-22 21:32:13 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2009-05-22 21:32:13 +0000 |
commit | ef516f73778aee928826e7158ad0506d26ed9ab0 (patch) | |
tree | c9fe31f00a0f6cd08c0c5e4025b522b881be8ce8 /libpostproc/postprocess.c | |
parent | 4969cc0bd84e5f69355f6428cddee22ba61ff897 (diff) | |
download | ffmpeg-ef516f73778aee928826e7158ad0506d26ed9ab0.tar.gz |
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
Diffstat (limited to 'libpostproc/postprocess.c')
-rw-r--r-- | libpostproc/postprocess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index b5b6649f93..179fd7ec98 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)); |