summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2022-01-22 15:41:22 +0100
committerByteHamster <info@bytehamster.com>2022-01-22 23:09:32 +0100
commit1837ce30d1616639a327271be657a9ef40a575b9 (patch)
tree7a6b8690e28ceecc00bbc3b5cf92d2d989a2a435
parentb28a98067f45e541fcc7341226486dbb26c62516 (diff)
downloadantennapod-1837ce30d1616639a327271be657a9ef40a575b9.zip
MIME type is always ISO encoded
-rw-r--r--parser/media/src/main/java/de/danoeh/antennapod/parser/media/id3/ChapterReader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/media/src/main/java/de/danoeh/antennapod/parser/media/id3/ChapterReader.java b/parser/media/src/main/java/de/danoeh/antennapod/parser/media/id3/ChapterReader.java
index 81bfa67b6..ac79432b5 100644
--- a/parser/media/src/main/java/de/danoeh/antennapod/parser/media/id3/ChapterReader.java
+++ b/parser/media/src/main/java/de/danoeh/antennapod/parser/media/id3/ChapterReader.java
@@ -82,7 +82,7 @@ public class ChapterReader extends ID3Reader {
break;
case FRAME_ID_PICTURE:
byte encoding = readByte();
- String mime = readEncodedString(encoding, frameHeader.getSize());
+ String mime = readIsoStringNullTerminated(frameHeader.getSize());
byte type = readByte();
String description = readEncodedString(encoding, frameHeader.getSize());
Log.d(TAG, "Found apic: " + mime + "," + description);