Repository navigation
Conversation
Owner
|
This is originating from dr_wav. I have fixed this manually upstream and updated both the dev and dev-0.12 branches. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
RIFF and RIFX WAV files that use 0xFFFFFFFF as the data chunk size can report zero PCM frames when the audio payload exceeds 4 GiB. The file-size probe leaves the stream at EOF, so the fallback scan reads zero bytes.
Fix
When the file size is available, calculate the data size from the file size and the data chunk offset. When a fallback scan is still needed, seek back to the start of the data chunk before reading.
Verification