Commit 49c6f0ae authored by Paul B Mahol's avatar Paul B Mahol

avcodec/apedec: use init_get_bits8()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 2508fa10
......@@ -1456,7 +1456,8 @@ static int ape_decode_frame(AVCodecContext *avctx, void *data,
}
s->ptr += offset;
} else {
init_get_bits(&s->gb, s->ptr, (s->data_end - s->ptr) * 8);
if ((ret = init_get_bits8(&s->gb, s->ptr, s->data_end - s->ptr)) < 0)
return ret;
if (s->fileversion > 3800)
skip_bits_long(&s->gb, offset * 8);
else
......
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