mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
AIFF comment format fix.
This commit is contained in:
parent
6fb9b9ce4e
commit
417f9eb31c
1 changed files with 4 additions and 1 deletions
|
|
@ -225,7 +225,10 @@ namespace AiffFileHelpers
|
|||
out.writeShortBigEndian ((short) values.getValue (prefix + "Identifier", "0").getIntValue());
|
||||
|
||||
const String comment (values.getValue (prefix + "Text", String::empty));
|
||||
out.write (comment.toUTF8(), jmin (comment.getNumBytesAsUTF8(), 65534));
|
||||
|
||||
const int commentLength = jmin (comment.getNumBytesAsUTF8(), 65534);
|
||||
out.writeShortBigEndian ((short) commentLength + 1);
|
||||
out.write (comment.toUTF8(), commentLength);
|
||||
out.writeByte (0);
|
||||
|
||||
if ((out.getDataSize() & 1) != 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue