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

avcodec/tscc2: use init_get_bits8()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 290be34a
...@@ -192,7 +192,8 @@ static int tscc2_decode_slice(TSCC2Context *c, int mb_y, ...@@ -192,7 +192,8 @@ static int tscc2_decode_slice(TSCC2Context *c, int mb_y,
int i, mb_x, q, ret; int i, mb_x, q, ret;
int off; int off;
init_get_bits(&c->gb, buf, buf_size * 8); if ((ret = init_get_bits8(&c->gb, buf, buf_size)) < 0)
return ret;
for (mb_x = 0; mb_x < c->mb_width; mb_x++) { for (mb_x = 0; mb_x < c->mb_width; mb_x++) {
q = c->slice_quants[mb_x + c->mb_width * mb_y]; q = c->slice_quants[mb_x + c->mb_width * mb_y];
......
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