diff options
author | ByteHamster <info@bytehamster.com> | 2021-08-02 19:23:35 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2021-08-17 20:12:21 +0200 |
commit | d39766bd1dbefa7812955c616a0b5f5db7276072 (patch) | |
tree | 7a05177f92d478e841c548d712cc2bc84048732a /core | |
parent | ca4d5951598ddd385d55bf829ac5d19cbe620441 (diff) | |
download | AntennaPod-d39766bd1dbefa7812955c616a0b5f5db7276072.zip |
Backport: Skip id3 extended header if available
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/id3reader/ID3Reader.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/id3reader/ID3Reader.java b/core/src/main/java/de/danoeh/antennapod/core/util/id3reader/ID3Reader.java index 38a0d77e4..b7baaa8aa 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/id3reader/ID3Reader.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/id3reader/ID3Reader.java @@ -97,6 +97,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); } |