diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-05-31 09:28:29 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-05-31 09:28:29 +0000 |
commit | f005808bf2d1e613fdb267d61feaa0c75b134d1e (patch) | |
tree | d645e9f4de7e3618b631f760c92f1f26b499d612 | |
parent | 46c02b1b50c69936f47cf746079ca6df6d363a92 (diff) | |
download | ffmpeg-f005808bf2d1e613fdb267d61feaa0c75b134d1e.tar.gz |
Use FFALIGN
Originally committed as revision 19039 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/lcldec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c index c955ff6062..d9738c787b 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; |