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:
parent
41a2c97ff3
commit
dff555b23a
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue