summaryrefslogtreecommitdiff
path: root/libavcodec/zmbvenc.c
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2009-05-22 21:32:13 +0000
committerDavid Conrad <lessen42@gmail.com>2009-05-22 21:32:13 +0000
commitef516f73778aee928826e7158ad0506d26ed9ab0 (patch)
treec9fe31f00a0f6cd08c0c5e4025b522b881be8ce8 /libavcodec/zmbvenc.c
parent4969cc0bd84e5f69355f6428cddee22ba61ff897 (diff)
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.c2
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;