r210enc: fix encoding for unaligned widths

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/3/merge
Paul B Mahol 13 years ago committed by Michael Niedermayer
parent cbf1dc4eb4
commit 6bcc8275a1
  1. 2
      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];
}

Loading…
Cancel
Save