mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Fix lint errors
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=140488486
This commit is contained in:
parent
bfc2faa269
commit
91c58627be
1 changed files with 2 additions and 2 deletions
|
|
@ -368,13 +368,13 @@ public final class Id3Decoder implements MetadataDecoder {
|
|||
int mimeTypeEndIndex;
|
||||
if (majorVersion == 2) {
|
||||
mimeTypeEndIndex = 2;
|
||||
mimeType = "image/" + new String(data, 0, 3, "ISO-8859-1").toLowerCase();
|
||||
mimeType = "image/" + Util.toLowerInvariant(new String(data, 0, 3, "ISO-8859-1"));
|
||||
if (mimeType.equals("image/jpg")) {
|
||||
mimeType = "image/jpeg";
|
||||
}
|
||||
} else {
|
||||
mimeTypeEndIndex = indexOfZeroByte(data, 0);
|
||||
mimeType = new String(data, 0, mimeTypeEndIndex, "ISO-8859-1").toLowerCase();
|
||||
mimeType = Util.toLowerInvariant(new String(data, 0, mimeTypeEndIndex, "ISO-8859-1"));
|
||||
if (mimeType.indexOf('/') == -1) {
|
||||
mimeType = "image/" + mimeType;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue