From 6bcc8275a1c74265679c41bd2758e0834f0b8d69 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 29 Jan 2012 00:32:16 +0000 Subject: [PATCH] r210enc: fix encoding for unaligned widths Signed-off-by: Paul B Mahol Signed-off-by: Michael Niedermayer --- libavcodec/r210enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/r210enc.c b/libavcodec/r210enc.c index cfe433e8ff..1d924cc77c 100644 --- a/libavcodec/r210enc.c +++ b/libavcodec/r210enc.c @@ -68,7 +68,7 @@ static int encode_frame(AVCodecContext *avctx, uint8_t *buf, else bytestream_put_be32(&dst, pixel); } - dst += aligned_width - avctx->width; + dst += (aligned_width - avctx->width) * 4; src_line += pic->linesize[0]; }