News for hackers. Stuff that matters.
Re:Have you ever hurt yourself from your own code? by Sniffnoy on Wednesday May 26, 2021 @10:46PM (#27298771)
I mean, they should have been removing zero byte-pairs, not zero bytes; removing zero bytes risks shifting whether you're off by one or not!
Re:Have you ever hurt yourself from your own code? by its_nikita on Wednesday May 26, 2021 @11:04PM (#27298891)
This would be the case for 16 bit samples (which all of my files were, and most WAV files are nowadays), but for 8 bit samples, it would be correct to remove single zero bytes. Basically I just have to follow the spec more closely
Re:Have you ever hurt yourself from your own code? by Sniffnoy on Wednesday May 26, 2021 @11:52PM (#27299206)
Yes, I was relying on your statement that they were all 16 bits; adjust appropriately otherwise.