dapphp/securimage — pull request #12 by Uranium235 (2012-04-19 17:50:26+00:00)
Title: Audiofixes

I added the padding byte for output where necessary. Also the padding byte is read, should there be the need for it. I have not implemented the case, where a padding byte would be needed but is not provided, as this would complicate things in readWavHeader() a lot and I'd have to implement some sort of heuristics. But that should not be a problem, as all common wave chunks are already word-aligned and the data chunk (the one where this error will most likely occur) needs to be at the end of the file anyway (at least after the crucial fmt chunk) and a missing padding byte would not make a difference.
The problem will only surface, if there are unsupported and malformed chunks in between the fmt (including) and data chunk.