diff zmbvenc.c @ 9686:bc32976d6d9d libavcodec

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 5680832edb83
children 38cfe222e1a4
line wrap: on
line diff
--- a/zmbvenc.c	Fri May 22 18:39:00 2009 +0000
+++ b/zmbvenc.c	Fri May 22 21:32:13 2009 +0000
@@ -284,7 +284,7 @@
         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;