Browse Source

r210enc: fix encoding for unaligned widths

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Paul B Mahol Michael Niedermayer 13 years ago
parent
commit
6bcc8275a1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/r210enc.c

+ 1
- 1
libavcodec/r210enc.c View File

@@ -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