Skip to content

Comments

Fix WaveFileChunkReader.ReadWaveHeader: wrong reader advance (on RF64 files)#1231

Open
Audio-sohn wants to merge 1 commit intonaudio:masterfrom
Audio-sohn:bugfix/wavfilechunkreader_rf64bug
Open

Fix WaveFileChunkReader.ReadWaveHeader: wrong reader advance (on RF64 files)#1231
Audio-sohn wants to merge 1 commit intonaudio:masterfrom
Audio-sohn:bugfix/wavfilechunkreader_rf64bug

Conversation

@Audio-sohn
Copy link

I had problems with getting large RF64 WAVs to read properly. Turns out that the header reader had a small bug that caused it to lose sync with chunk start points, trying to load everything inbetween jumps into ram (since it thinks its some chunk with metadata or similar), which then either crashes the process or throws the riff chunk length exception, should the datachunk length exceed the int32 size limit.

During chunk reading the reader is always advanced by chunkLength. This breaks RF64 files, since the correct value is dataChunkLength (which was read from ds64 earlier and is only being overwritten with standard WAVE files). As a result, reader loses sync with chunk positions when dealing with RF64 Files.

During chunk reading the reader is always advanced by `chunkLength`.
This breaks RF64 files, since the correct value is `dataChunkLength` (which was read from ds64 earlier and is only being overwritten with standard WAVE files).
As a result, reader loses sync with chunk positions when dealing with RF64 Files.
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.

1 participant