mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Mime type string always finish with a single 0 byte
Mime type string always finish with a single 0 byte
This commit is contained in:
parent
88475e4fee
commit
b03c8a713b
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ public class Id3Parser implements MetadataParser<Map<String, Object>> {
|
|||
|
||||
int firstZeroIndex = indexOf(frame, 0, (byte) 0);
|
||||
String mimeType = new String(frame, 0, firstZeroIndex, "ISO-8859-1");
|
||||
int filenameStartIndex = firstZeroIndex + delimiterLength(encoding);
|
||||
int filenameStartIndex = firstZeroIndex + 1;
|
||||
int filenameEndIndex = indexOfEOS(frame, filenameStartIndex, encoding);
|
||||
String filename = new String(frame, filenameStartIndex,
|
||||
filenameEndIndex - filenameStartIndex, charset);
|
||||
|
|
|
|||
Loading…
Reference in a new issue