[go: nahoru, domu]

Skip to content

Commit

Permalink
stb_vorbis: fix bug in computing end of temp alloc buffer if it's not…
Browse files Browse the repository at this point in the history
… a multiple of 8
  • Loading branch information
Sean Barrett committed Jul 13, 2020
1 parent 3152efa commit db2acff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stb_vorbis.c
Original file line number Diff line number Diff line change
Expand Up @@ -4257,7 +4257,7 @@ static void vorbis_init(stb_vorbis *p, const stb_vorbis_alloc *z)
memset(p, 0, sizeof(*p)); // NULL out all malloc'd pointers to start
if (z) {
p->alloc = *z;
p->alloc.alloc_buffer_length_in_bytes = (p->alloc.alloc_buffer_length_in_bytes+3) & ~3;
p->alloc.alloc_buffer_length_in_bytes &= ~7;
p->temp_offset = p->alloc.alloc_buffer_length_in_bytes;
}
p->eof = 0;
Expand Down

0 comments on commit db2acff

Please sign in to comment.