Commit 3a7f8d2a authored by Paul B Mahol's avatar Paul B Mahol

avcodec/qdrw: consume bytes when end is reached for 8bpp case

This should really be part of previous commit.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 1dcf91f2
......@@ -242,8 +242,9 @@ static int decode_rle(AVCodecContext *avctx, AVFrame *p, GetByteContext *gbc,
left -= 2;
} else { /* copy */
for (j = 0; j < code + 1; j++) {
pix = bytestream2_get_byte(gbc);
if (pos < offset)
out[pos] = bytestream2_get_byte(gbc);
out[pos] = pix;
pos += step;
if (pos >= offset && step > 1) {
pos -= offset;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment