mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
1dcf91f2d3
commit
3a7f8d2a1f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user