diff options
author | David Conrad <lessen42@gmail.com> | 2009-05-22 21:32:13 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2009-05-22 21:32:13 +0000 |
commit | ef516f73778aee928826e7158ad0506d26ed9ab0 (patch) | |
tree | c9fe31f00a0f6cd08c0c5e4025b522b881be8ce8 /libavcodec/vp3.c | |
parent | 4969cc0bd84e5f69355f6428cddee22ba61ff897 (diff) | |
download | ffmpeg-ef516f73778aee928826e7158ad0506d26ed9ab0.tar.gz |
Move ALIGN macro to libavutil/common.h and use it in various places
Originally committed as revision 18898 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r-- | libavcodec/vp3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 43a3658c33..9f7dfb62d7 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -1636,8 +1636,8 @@ static av_cold int vp3_decode_init(AVCodecContext *avctx) s->version = 1; s->avctx = avctx; - s->width = (avctx->width + 15) & 0xFFFFFFF0; - s->height = (avctx->height + 15) & 0xFFFFFFF0; + s->width = FFALIGN(avctx->width, 16); + s->height = FFALIGN(avctx->height, 16); avctx->pix_fmt = PIX_FMT_YUV420P; avctx->chroma_sample_location = AVCHROMA_LOC_CENTER; if(avctx->idct_algo==FF_IDCT_AUTO) |