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]; }