Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support wave_format_extensible header #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

graue
Copy link

@graue graue commented Dec 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support new format for 24-bit .wav files
1 participant