mirror of
https://github.com/nothings/stb
synced 2024-12-15 20:32:33 +03:00
Merge branch 'patch-1' of https://github.com/vickit144/stb into working
This commit is contained in:
commit
add7adc3ea
@ -1602,7 +1602,9 @@ static uint32 get_bits(vorb *f, int n)
|
|||||||
f->valid_bits += 8;
|
f->valid_bits += 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (f->valid_bits < 0) return 0;
|
|
||||||
|
assert(f->valid_bits >= n);
|
||||||
|
|
||||||
z = f->acc & ((1 << n)-1);
|
z = f->acc & ((1 << n)-1);
|
||||||
f->acc >>= n;
|
f->acc >>= n;
|
||||||
f->valid_bits -= n;
|
f->valid_bits -= n;
|
||||||
|
Loading…
Reference in New Issue
Block a user