summaryrefslogtreecommitdiff
path: root/libavcodec/r210enc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-01-29 00:32:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-01-29 02:41:56 +0100
commit6bcc8275a1c74265679c41bd2758e0834f0b8d69 (patch)
treee521b061e8de9b2fb1cacca17b30fe4a2679deaa /libavcodec/r210enc.c
parentcbf1dc4eb4b49c5c35ba69b3edef2fe8ea8087ec (diff)
downloadffmpeg-6bcc8275a1c74265679c41bd2758e0834f0b8d69.tar.gz
r210enc: fix encoding for unaligned widths
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/r210enc.c')
-rw-r--r--libavcodec/r210enc.c2
1 files changed, 1 insertions, 1 deletions
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];
}