SSRC icon indicating copy to clipboard operation
SSRC copied to clipboard

support wave_format_extensible header

Open graue opened this issue 2 years ago • 0 comments

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

graue avatar Dec 03 '22 07:12 graue