stb_image: fix assert macro usage; stb_vorbis: changelog
This commit is contained in:
parent
476b4c7a72
commit
dfff6f5e7c
@ -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];
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user