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!
[ Parent
| on HN ]
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