aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-02-05 21:14:37 +0000
committerAnton Khirnov <anton@khirnov.net>2012-02-06 08:00:15 +0100
commit7ad1b612c8a2a1b1b47f6c3c580ced4bca17e1c7 (patch)
treea16dc5e6614daa37165b1e424aa331b3dc531115
parentb5f50da593b2207dbcc9bde9c3662a5fb397a546 (diff)
downloadffmpeg-7ad1b612c8a2a1b1b47f6c3c580ced4bca17e1c7.tar.gz
v210enc: use FFALIGN()
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavcodec/v210enc.c2
1 files changed, 1 insertions, 1 deletions
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];