From f005808bf2d1e613fdb267d61feaa0c75b134d1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= <Reimar.Doeffinger@gmx.de>
Date: Sun, 31 May 2009 09:28:29 +0000
Subject: [PATCH] Use FFALIGN

Originally committed as revision 19039 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/lcldec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index c955ff60625..d9738c787be 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -461,7 +461,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
 {
     LclDecContext * const c = avctx->priv_data;
     unsigned int basesize = avctx->width * avctx->height;
-    unsigned int max_basesize = ((avctx->width + 3) & ~3) * ((avctx->height + 3) & ~3);
+    unsigned int max_basesize = FFALIGN(avctx->width, 4) * FFALIGN(avctx->height, 4);
     unsigned int max_decomp_size;
 
     c->pic.data[0] = NULL;
-- 
GitLab