1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

WAV: Fixed an issue parsing RF64 headers

This commit is contained in:
Tom Poole 2019-10-21 11:54:03 +01:00
parent 41a2c97ff3
commit dff555b23a

View file

@ -1052,8 +1052,15 @@ public:
}
else if (chunkType == chunkName ("data"))
{
if (! isRF64) // data size is expected to be -1, actual data size is in ds64 chunk
if (isRF64)
{
if (dataLength > 0)
chunkEnd = input->getPosition() + dataLength + (dataLength & 1);
}
else
{
dataLength = length;
}
dataChunkStart = input->getPosition();
lengthInSamples = (bytesPerFrame > 0) ? (dataLength / bytesPerFrame) : 0;