diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-01-29 00:32:16 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-29 02:41:56 +0100 |
commit | 6bcc8275a1c74265679c41bd2758e0834f0b8d69 (patch) | |
tree | e521b061e8de9b2fb1cacca17b30fe4a2679deaa /libavcodec | |
parent | cbf1dc4eb4b49c5c35ba69b3edef2fe8ea8087ec (diff) | |
download | ffmpeg-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')
-rw-r--r-- | libavcodec/r210enc.c | 2 |
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]; } |