Merge pull request #5321 from ByteHamster/skip-id3-extended-header

Skip id3 extended header if available
This commit is contained in:
ByteHamster 2021-08-06 20:30:33 +02:00 committed by GitHub
commit 1bb9214095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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