changeset 9755:bd5d76a5ffac libavcodec

Use FFALIGN
author reimar
date Sun, 31 May 2009 09:28:29 +0000
parents 269e16268683
children ed55b61c8e45
files lcldec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;