diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-02-27 14:04:15 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-02-27 14:04:15 +0300 |
commit | 3a7f8d2a1f305fac97742c6aa5528c644e08e966 (patch) | |
tree | c1b15a5e647151205988ce602c337ddc22367b79 /libavcodec/qdrw.c | |
parent | 1dcf91f2d360e266cd1c8349cc427d360f535918 (diff) |
avcodec/qdrw: consume bytes when end is reached for 8bpp case
This should really be part of previous commit.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/qdrw.c')
-rw-r--r-- | libavcodec/qdrw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c index 975e44013f..20e673a515 100644 --- a/libavcodec/qdrw.c +++ b/libavcodec/qdrw.c @@ -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; |