mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/tscc2: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
290be34a74
commit
ad1dfe04a1
@ -192,7 +192,8 @@ static int tscc2_decode_slice(TSCC2Context *c, int mb_y,
|
||||
int i, mb_x, q, ret;
|
||||
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++) {
|
||||
q = c->slice_quants[mb_x + c->mb_width * mb_y];
|
||||
|
Loading…
Reference in New Issue
Block a user