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 /libavcodec/zmbvenc.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 'libavcodec/zmbvenc.c')
-rw-r--r-- | libavcodec/zmbvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c index 5268b939d9..21882d503f 100644 --- a/libavcodec/zmbvenc.c +++ b/libavcodec/zmbvenc.c @@ -284,7 +284,7 @@ static av_cold int encode_init(AVCodecContext *avctx) av_log(avctx, AV_LOG_ERROR, "Can't allocate compression buffer.\n"); return -1; } - c->pstride = (avctx->width + 15) & ~15; + c->pstride = FFALIGN(avctx->width, 16); if ((c->prev = av_malloc(c->pstride * avctx->height)) == NULL) { av_log(avctx, AV_LOG_ERROR, "Can't allocate picture.\n"); return -1; |