mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-29 21:47:48 +02:00
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:
parent
cbf1dc4eb4
commit
6bcc8275a1
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user