From 7ad1b612c8a2a1b1b47f6c3c580ced4bca17e1c7 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 5 Feb 2012 21:14:37 +0000 Subject: [PATCH] v210enc: use FFALIGN() Signed-off-by: Paul B Mahol Signed-off-by: Anton Khirnov --- libavcodec/v210enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c index c31254ebc7..00a89025d2 100644 --- a/libavcodec/v210enc.c +++ b/libavcodec/v210enc.c @@ -53,7 +53,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) { const AVFrame *pic = data; - int aligned_width = ((avctx->width + 47) / 48) * 48; + int aligned_width = FFALIGN(avctx->width, 48); int stride = aligned_width * 8 / 3; int h, w; const uint16_t *y = (const uint16_t*)pic->data[0];