[FFmpeg-cvslog] r19039 - trunk/libavcodec/lcldec.c

reimar subversion
Sun May 31 11:28:29 CEST 2009


Author: reimar
Date: Sun May 31 11:28:29 2009
New Revision: 19039

Log:
Use FFALIGN

Modified:
   trunk/libavcodec/lcldec.c

Modified: trunk/libavcodec/lcldec.c
==============================================================================
--- trunk/libavcodec/lcldec.c	Sun May 31 11:27:07 2009	(r19038)
+++ trunk/libavcodec/lcldec.c	Sun May 31 11:28:29 2009	(r19039)
@@ -461,7 +461,7 @@ static av_cold int decode_init(AVCodecCo
 {
     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;



More information about the ffmpeg-cvslog mailing list