summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--codebook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/codebook.c b/codebook.c
index 3844ddc..d7d4783 100644
--- a/codebook.c
+++ b/codebook.c
@@ -84,7 +84,7 @@ static_codebook *vorbis_staticbook_unpack(oggpack_buffer *opb){
long num=oggpack_read(opb,_ilog(s->entries-i));
if(num==-1)goto _eofout;
if(length>32 || num>s->entries-i ||
- (num>0 && num-1>>(length>>1)>>((length+1)>>1))>0){
+ (num>0 && (num-1)>>(length>>1)>>((length+1)>>1))>0){
goto _errout;
}
for(j=0;j<num;j++,i++)