r210enc: fix encoding for unaligned widths

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Paul B Mahol
2012-01-29 00:32:16 +00:00
committed by Michael Niedermayer
parent cbf1dc4eb4
commit 6bcc8275a1

View File

@@ -68,7 +68,7 @@ static int encode_frame(AVCodecContext *avctx, uint8_t *buf,
else else
bytestream_put_be32(&dst, pixel); bytestream_put_be32(&dst, pixel);
} }
dst += aligned_width - avctx->width; dst += (aligned_width - avctx->width) * 4;
src_line += pic->linesize[0]; src_line += pic->linesize[0];
} }