Commit 94cfb6db authored by Paul B Mahol's avatar Paul B Mahol

avcodec/shorten: use init_get_bits8()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent c0d676f9
...@@ -466,7 +466,8 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data, ...@@ -466,7 +466,8 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
} }
} }
/* init and position bitstream reader */ /* init and position bitstream reader */
init_get_bits(&s->gb, buf, buf_size * 8); if ((ret = init_get_bits8(&s->gb, buf, buf_size)) < 0)
return ret;
skip_bits(&s->gb, s->bitindex); skip_bits(&s->gb, s->bitindex);
/* process header or next subblock */ /* process header or next subblock */
......
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