# HG changeset patch # User reimar # Date 1243762109 0 # Node ID bd5d76a5ffac180aa15681304a05ed3c926f7f18 # Parent 269e162686833140721cfb147e984797fa7ebc88 Use FFALIGN diff -r 269e16268683 -r bd5d76a5ffac lcldec.c --- a/lcldec.c Sun May 31 09:27:07 2009 +0000 +++ b/lcldec.c Sun May 31 09:28:29 2009 +0000 @@ -461,7 +461,7 @@ { 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;