Commit f0edab6e authored by Paul B Mahol's avatar Paul B Mahol

avcodec/interplayvideo: use correct context when checking for enough bytes

Fixes #6502.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 0c2acccd
......@@ -1044,7 +1044,7 @@ static void ipvideo_decode_format_10_opcodes(IpvideoContext *s, AVFrame *frame)
for (x = 0; x < s->avctx->width; x += 8) {
s->pixel_ptr = s->cur_decode_frame->data[0] + x + y * s->cur_decode_frame->linesize[0];
while (skip <= 0 && bytestream2_get_bytes_left(&decoding_map_ptr) > 1) {
while (skip <= 0 && bytestream2_get_bytes_left(&skip_map_ptr) > 1) {
if (skip != -0x8000 && skip) {
opcode = bytestream2_get_le16(&decoding_map_ptr);
ipvideo_format_10_passes[pass](s, frame, opcode);
......
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