Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1739af68
authored
Feb 27, 2015
by
J. Oliva
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Removed indexOfNot method
Removed the unused method indexOfNot
parent
f33cdd97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
library/src/main/java/com/google/android/exoplayer/metadata/Id3Parser.java
library/src/main/java/com/google/android/exoplayer/metadata/Id3Parser.java
View file @
1739af68
...
@@ -70,7 +70,7 @@ public class Id3Parser implements MetadataParser<Map<String, Object>> {
...
@@ -70,7 +70,7 @@ public class Id3Parser implements MetadataParser<Map<String, Object>> {
int
valueStartIndex
=
firstZeroIndex
+
delimiterLength
(
encoding
);
int
valueStartIndex
=
firstZeroIndex
+
delimiterLength
(
encoding
);
int
valueEndIndex
=
indexOfEOS
(
frame
,
valueStartIndex
,
encoding
);
int
valueEndIndex
=
indexOfEOS
(
frame
,
valueStartIndex
,
encoding
);
String
value
=
new
String
(
frame
,
valueStartIndex
,
valueEndIndex
-
valueStartIndex
,
String
value
=
new
String
(
frame
,
valueStartIndex
,
valueEndIndex
-
valueStartIndex
,
charset
);
charset
);
metadata
.
put
(
TxxxMetadata
.
TYPE
,
new
TxxxMetadata
(
description
,
value
));
metadata
.
put
(
TxxxMetadata
.
TYPE
,
new
TxxxMetadata
(
description
,
value
));
}
else
if
(
frameId0
==
'P'
&&
frameId1
==
'R'
&&
frameId2
==
'I'
&&
frameId3
==
'V'
)
{
}
else
if
(
frameId0
==
'P'
&&
frameId1
==
'R'
&&
frameId2
==
'I'
&&
frameId3
==
'V'
)
{
// Check frame ID == PRIV
// Check frame ID == PRIV
...
@@ -98,7 +98,7 @@ public class Id3Parser implements MetadataParser<Map<String, Object>> {
...
@@ -98,7 +98,7 @@ public class Id3Parser implements MetadataParser<Map<String, Object>> {
int
descriptionStartIndex
=
filenameEndIndex
+
delimiterLength
(
encoding
);
int
descriptionStartIndex
=
filenameEndIndex
+
delimiterLength
(
encoding
);
int
descriptionEndIndex
=
indexOfEOS
(
frame
,
descriptionStartIndex
,
encoding
);
int
descriptionEndIndex
=
indexOfEOS
(
frame
,
descriptionStartIndex
,
encoding
);
String
description
=
new
String
(
frame
,
descriptionStartIndex
,
String
description
=
new
String
(
frame
,
descriptionStartIndex
,
descriptionEndIndex
-
descriptionStartIndex
,
charset
);
descriptionEndIndex
-
descriptionStartIndex
,
charset
);
byte
[]
objectData
=
new
byte
[
frameSize
-
descriptionEndIndex
-
2
];
byte
[]
objectData
=
new
byte
[
frameSize
-
descriptionEndIndex
-
2
];
System
.
arraycopy
(
frame
,
descriptionEndIndex
+
delimiterLength
(
encoding
),
objectData
,
0
,
System
.
arraycopy
(
frame
,
descriptionEndIndex
+
delimiterLength
(
encoding
),
objectData
,
0
,
...
@@ -127,15 +127,6 @@ public class Id3Parser implements MetadataParser<Map<String, Object>> {
...
@@ -127,15 +127,6 @@ public class Id3Parser implements MetadataParser<Map<String, Object>> {
return
data
.
length
;
return
data
.
length
;
}
}
private
static
int
indexOfNot
(
byte
[]
data
,
int
fromIndex
,
byte
key
)
{
for
(
int
i
=
fromIndex
;
i
<
data
.
length
;
i
++)
{
if
(
data
[
i
]
!=
key
)
{
return
i
;
}
}
return
data
.
length
;
}
private
static
int
indexOfEOS
(
byte
[]
data
,
int
fromIndex
,
int
encodingByte
)
{
private
static
int
indexOfEOS
(
byte
[]
data
,
int
fromIndex
,
int
encodingByte
)
{
int
terminationPos
=
indexOf
(
data
,
fromIndex
,
(
byte
)
0
);
int
terminationPos
=
indexOf
(
data
,
fromIndex
,
(
byte
)
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment