Commit 484cc66f authored by Paul B Mahol's avatar Paul B Mahol

avcodec/indeo2: use init_get_bits8

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent d4c47333
......@@ -165,7 +165,8 @@ static int ir2_decode_frame(AVCodecContext *avctx,
buf[i] = ff_reverse[buf[i]];
#endif
init_get_bits(&s->gb, buf + start, (buf_size - start) * 8);
if ((ret = init_get_bits8(&s->gb, buf + start, buf_size - start)) < 0)
return ret;
if (s->decode_delta) { /* intraframe */
if ((ret = ir2_decode_plane(s, avctx->width, avctx->height,
......
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