1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Use FFALIGN

Originally committed as revision 19039 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Reimar Döffinger 2009-05-31 09:28:29 +00:00
parent 46c02b1b50
commit f005808bf2

View File

@ -461,7 +461,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
{ {
LclDecContext * const c = avctx->priv_data; LclDecContext * const c = avctx->priv_data;
unsigned int basesize = avctx->width * avctx->height; 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; unsigned int max_decomp_size;
c->pic.data[0] = NULL; c->pic.data[0] = NULL;