Browse Source

Merge branch 'fix_stb_vorbis_alignment' of https://github.com/RandomShaper/stb into working

Sean Barrett 5 years ago
parent
commit
a9df364a7c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      stb_vorbis.c

+ 2 - 2
stb_vorbis.c

@@ -32,7 +32,7 @@
 //    github:manxorist   saga musix          github:infatum
 //    Timur Gagiev       Maxwell Koo         Peter Waller
 //    github:audinowho   Dougall Johnson     David Reid
-//    github:Clownacy
+//    github:Clownacy    Pedro J. Estebanez
 //
 // Partial history:
 //    1.19    - 2020-02-05 - warnings
@@ -964,7 +964,7 @@ static void *setup_temp_malloc(vorb *f, int sz)
 static void setup_temp_free(vorb *f, void *p, int sz)
 {
    if (f->alloc.alloc_buffer) {
-      f->temp_offset += (sz+3)&~3;
+      f->temp_offset += (sz+7)&~7;
       return;
    }
    free(p);