Skip id3 extended header if available

This commit is contained in:
ByteHamster 2021-08-02 19:23:35 +02:00
parent c3b35f7d8d
commit 1c471aeba8
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ public class ID3Reader {
short version = readShort(); short version = readShort();
byte flags = readByte(); byte flags = readByte();
int size = unsynchsafe(readInt()); int size = unsynchsafe(readInt());
if ((flags & 0b01000000) != 0) {
int extendedHeaderSize = readInt();
skipBytes(extendedHeaderSize - 4);
}
return new TagHeader("ID3", size, version, flags); return new TagHeader("ID3", size, version, flags);
} }