diff options
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) |