浏览代码

stb_image: fix assert macro usage; stb_vorbis: changelog

Sean Barrett 7 年之前
父节点
当前提交
dfff6f5e7c
共有 2 个文件被更改,包括 5 次插入4 次删除
  1. 3 3
      stb_image.h
  2. 2 1
      stb_vorbis.c

+ 3 - 3
stb_image.h

@@ -1,4 +1,4 @@
-/* stb_image - v2.17 - public domain image loader - http://nothings.org/stb
+/* stb_image - v2.17b - public domain image loader - http://nothings.org/stb
                                   no warranty implied; use at your own risk
 
    Do this:
@@ -5041,9 +5041,9 @@ static int stbi__shiftsigned(int v, int shift, int bits)
       v <<= -shift;
    else
       v >>= shift;
-   assert(v >= 0 && v < 256);
+   STBI_ASSERT(v >= 0 && v < 256);
    v >>= (8-bits);
-   assert(bits >= 0 && bits <= 8);
+   STBI_ASSERT(bits >= 0 && bits <= 8);
    return (int) ((unsigned) v * mul_table[bits]) >> shift_table[bits];
 }
 

+ 2 - 1
stb_vorbis.c

@@ -1,4 +1,4 @@
-// Ogg Vorbis audio decoder - v1.12 - public domain
+// Ogg Vorbis audio decoder - v1.13 - public domain
 // http://nothings.org/stb_vorbis/
 //
 // Original version written by Sean Barrett in 2007.
@@ -32,6 +32,7 @@
 //    manxorist@github   saga musix          github:infatum
 //
 // Partial history:
+//    1.13    - 2018/01/29 - fix truncation of last frame (hopefully)
 //    1.12    - 2017/11/21 - limit residue begin/end to blocksize/2 to avoid large temp allocs in bad/corrupt files
 //    1.11    - 2017/07/23 - fix MinGW compilation 
 //    1.10    - 2017/03/03 - more robust seeking; fix negative ilog(); clear error in open_memory