Replace computations of remaining bits with calls to get_bits_left().
This commit is contained in:
@@ -387,7 +387,7 @@ static void vp6_parse_coeff_huffman(VP56Context *s)
|
||||
if (coeff_idx)
|
||||
break;
|
||||
} else {
|
||||
if (get_bits_count(&s->gb) >= s->gb.size_in_bits)
|
||||
if (get_bits_left(&s->gb) <= 0)
|
||||
return;
|
||||
coeff = get_vlc2(&s->gb, vlc_coeff->table, 9, 3);
|
||||
if (coeff == 0) {
|
||||
|
Reference in New Issue
Block a user