mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 05:32:47 +00:00
fix lodepng CRC calculation
This commit is contained in:
parent
9cc31b6f56
commit
7d3a5270f1
@ -48,7 +48,7 @@ allow implementing a custom lodepng_crc32.
|
||||
#include "crc32.h"
|
||||
static inline unsigned lodepng_crc32(const unsigned char *data, size_t length)
|
||||
{
|
||||
return crc32_calculate(0, data, length);
|
||||
return crc32_calculate(0xffffffffu, data, length) ^ 0xffffffffu;
|
||||
}
|
||||
|
||||
/*deflate & zlib. If disabled, you must specify alternative zlib functions in
|
||||
|
Loading…
x
Reference in New Issue
Block a user