1
0
Fork 0
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:
attila 2025-04-02 11:26:17 +02:00 committed by Attila Szarvas
parent 6ba9a380ef
commit 99b63cf038

View file

@ -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;