diff --git a/stb_vorbis.c b/stb_vorbis.c index b28944a..4e67726 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -1600,7 +1600,7 @@ static uint32 get_bits(vorb *f, int n) f->valid_bits += 8; } } - if (f->valid_bits < 0) return 0; + z = f->acc & ((1 << n)-1); f->acc >>= n; f->valid_bits -= n;