summaryrefslogtreecommitdiff
path: root/apps/codecs/Tremor/ogg.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/Tremor/ogg.h')
-rw-r--r--apps/codecs/Tremor/ogg.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/codecs/Tremor/ogg.h b/apps/codecs/Tremor/ogg.h
index 08d15788c0..e6c78da95e 100644
--- a/apps/codecs/Tremor/ogg.h
+++ b/apps/codecs/Tremor/ogg.h
@@ -184,12 +184,13 @@ static inline void oggpack_adv(oggpack_buffer *b,int bits){
184 bits+=b->headbit; 184 bits+=b->headbit;
185 b->headbit=bits&7; 185 b->headbit=bits&7;
186 b->headptr+=bits/8; 186 b->headptr+=bits/8;
187 if((b->headend-=bits/8)<1)_span(b); 187 if((b->headend-=((unsigned)bits)/8)<1)_span(b);
188} 188}
189 189
190static inline long oggpack_look(oggpack_buffer *b, int bits){ 190static inline long oggpack_look(oggpack_buffer *b, int bits){
191 if(bits+b->headbit < b->headend<<3){ 191 if(bits+b->headbit < b->headend<<3){
192 unsigned long m=(1<<bits)-1; 192 extern const unsigned long oggpack_mask[];
193 unsigned long m=oggpack_mask[bits];
193 unsigned long ret=0; 194 unsigned long ret=0;
194 195
195 bits+=b->headbit; 196 bits+=b->headbit;