Mercurial > libavcodec.hg
comparison lcldec.c @ 9755:bd5d76a5ffac libavcodec
Use FFALIGN
author | reimar |
---|---|
date | Sun, 31 May 2009 09:28:29 +0000 |
parents | 269e16268683 |
children | ed55b61c8e45 |
comparison
equal
deleted
inserted
replaced
9754:269e16268683 | 9755:bd5d76a5ffac |
---|---|
459 */ | 459 */ |
460 static av_cold int decode_init(AVCodecContext *avctx) | 460 static av_cold int decode_init(AVCodecContext *avctx) |
461 { | 461 { |
462 LclDecContext * const c = avctx->priv_data; | 462 LclDecContext * const c = avctx->priv_data; |
463 unsigned int basesize = avctx->width * avctx->height; | 463 unsigned int basesize = avctx->width * avctx->height; |
464 unsigned int max_basesize = ((avctx->width + 3) & ~3) * ((avctx->height + 3) & ~3); | 464 unsigned int max_basesize = FFALIGN(avctx->width, 4) * FFALIGN(avctx->height, 4); |
465 unsigned int max_decomp_size; | 465 unsigned int max_decomp_size; |
466 | 466 |
467 c->pic.data[0] = NULL; | 467 c->pic.data[0] = NULL; |
468 | 468 |
469 #if CONFIG_ZLIB_DECODER | 469 #if CONFIG_ZLIB_DECODER |