Hello! Thank you! I didn't know that, your CRC32-code works perfectly. All Unit-Tests are OK with it.
Regards, Dominik Von: Andreas Beeker <[email protected]> Gesendet: Dienstag, 3. März 2020 23:32 An: [email protected] Betreff: Re: AW: HSMF enhancements Hello Dominik, thank you very much for your explanations! I'll replace the crc code by the following - we have commons codec anyway as a dependency, j.u.z.CRC32 can be used likewise: static private long calculateCRC32(byte[] buf, int off, int len) { PureJavaCrc32 crc = new PureJavaCrc32(); // set initial crc value to 0 crc.update( new byte[] {-1,-1,-1,-1}, 0, 4); crc.update(buf, off, len); return ~crc.getValue() & 0xFFFFFFFFL; } I haven't finished with the rest yet, but the next release will anyway take a while ... Andi.
