mirror of https://github.com/nothings/stb.git
Compare commits
2 Commits
ea6a32f7b4
...
ca98480482
Author | SHA1 | Date |
---|---|---|
Alice R | ca98480482 | |
AliceLR | 34bb71ee5e |
|
@ -4161,7 +4161,8 @@ static int start_decoder(vorb *f)
|
|||
int i,max_part_read=0;
|
||||
for (i=0; i < f->residue_count; ++i) {
|
||||
Residue *r = f->residue_config + i;
|
||||
unsigned int actual_size = f->blocksize_1 / 2;
|
||||
unsigned int rtype = f->residue_types[i];
|
||||
unsigned int actual_size = rtype == 2 ? f->blocksize_1 : f->blocksize_1 / 2;
|
||||
unsigned int limit_r_begin = r->begin < actual_size ? r->begin : actual_size;
|
||||
unsigned int limit_r_end = r->end < actual_size ? r->end : actual_size;
|
||||
int n_read = limit_r_end - limit_r_begin;
|
||||
|
|
Loading…
Reference in New Issue