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:
committed by
Michael Niedermayer
parent
cbf1dc4eb4
commit
6bcc8275a1
@@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user