Skip id3 extended header if available
This commit is contained in:
parent
c3b35f7d8d
commit
1c471aeba8
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue