mirror of https://github.com/nothings/stb.git
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;
|
||||
}
|
||||
}
|
||||
if (f->valid_bits < 0) return 0;
|
||||
|
||||
assert(f->valid_bits >= n);
|
||||
|
||||
z = f->acc & ((1 << n)-1);
|
||||
f->acc >>= n;
|
||||
f->valid_bits -= n;
|
||||
|
|
Loading…
Reference in New Issue