Merge branch 'patch-1' of https://github.com/vickit144/stb into working

This commit is contained in:
Sean Barrett 2020-07-13 03:05:44 -07:00
commit add7adc3ea

View File

@ -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;