[FFmpeg-cvslog] r210enc: fix encoding for unaligned widths
Paul B Mahol
git at videolan.org
Sun Jan 29 02:53:02 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jan 29 00:32:16 2012 +0000| [6bcc8275a1c74265679c41bd2758e0834f0b8d69] | committer: Michael Niedermayer
r210enc: fix encoding for unaligned widths
Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6bcc8275a1c74265679c41bd2758e0834f0b8d69
---
libavcodec/r210enc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/r210enc.c b/libavcodec/r210enc.c
index cfe433e..1d924cc 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];
}
More information about the ffmpeg-cvslog
mailing list