mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
WavAudioFormat: Fix reading odd-sized INFO chunks in a LIST block
This commit is contained in:
parent
6ba9a380ef
commit
99b63cf038
1 changed files with 4 additions and 0 deletions
|
|
@ -800,6 +800,10 @@ namespace WavFileHelpers
|
|||
{
|
||||
MemoryBlock mb;
|
||||
input.readIntoMemoryBlock (mb, (ssize_t) infoLength);
|
||||
|
||||
if (infoLength & 1)
|
||||
input.skipNextBytes (1);
|
||||
|
||||
values[type] = String::createStringFromData ((const char*) mb.getData(),
|
||||
(int) mb.getSize());
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue