SSRC
SSRC copied to clipboard
support wave_format_extensible header
Many tools such as SoX and the FLAC command-line decoder now produce 24-bit wav files that use a relatively new header format, where the format tag is 0xFFFE, and the actual format tag (1 for PCM) is stored later. SSRC is rejecting these files saying only PCM is supported.
This pull request adds support for this header format based on the documentation here. I also fixed a potential buffer overflow in case someone creates a .wav file with an unusually long format chunk.
Fixes #7