diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-06-28 19:35:57 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-06-28 19:38:22 +0200 |
commit | f0edab6e63ecee29cb68230100f0c2fb5468284c (patch) | |
tree | c025af20643ddf2238457b499802589d57166748 | |
parent | 0c2acccd4be425d1121ec923f830c6fe99227b56 (diff) | |
download | ffmpeg-f0edab6e63ecee29cb68230100f0c2fb5468284c.tar.gz |
avcodec/interplayvideo: use correct context when checking for enough bytes
Fixes #6502.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/interplayvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/interplayvideo.c b/libavcodec/interplayvideo.c index 9094ad6ae3..690bc76901 100644 --- a/libavcodec/interplayvideo.c +++ b/libavcodec/interplayvideo.c @@ -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); |