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
7bf63e73
authored
Feb 18, 2020
by
Pierre-Hugues Husson
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove dead-code readDvbString
parent
1d65afdd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
59 deletions
library/core/src/main/java/com/google/android/exoplayer2/metadata/dvbsi/AitDecoder.java
library/core/src/main/java/com/google/android/exoplayer2/metadata/dvbsi/AitDecoder.java
View file @
7bf63e73
...
@@ -133,63 +133,4 @@ public class AitDecoder implements MetadataDecoder {
...
@@ -133,63 +133,4 @@ public class AitDecoder implements MetadataDecoder {
return
new
Metadata
(
aits
);
return
new
Metadata
(
aits
);
}
}
static
final
String
dvbCharset
[]
=
{
"ISO-8859-15"
,
"ISO-8859-5"
,
"ISO-8859-6"
,
"ISO-8859-7"
,
"ISO-8859-8"
,
"ISO-8859-9"
,
null
,
"ISO-8859-11"
,
null
,
"ISO-8859-13"
,
null
,
"ISO-8859-15"
,
null
,
null
,
null
,
null
,
//0x10
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
};
static
String
readDvbString
(
ParsableByteArray
data
,
int
length
)
{
if
(
length
==
0
)
return
null
;
int
charsetSelect
=
data
.
peekUnsignedByte
();
if
(
charsetSelect
>=
0x20
)
return
data
.
readString
(
length
,
Charset
.
forName
(
"ISO-8859-15"
));
data
.
skipBytes
(
1
);
if
(
charsetSelect
==
0x1f
)
{
data
.
skipBytes
(
length
-
1
);
return
null
;
}
if
(
charsetSelect
!=
0x10
)
return
data
.
readString
(
length
-
1
,
Charset
.
forName
(
dvbCharset
[
charsetSelect
]));
if
(
length
==
2
)
{
data
.
skipBytes
(
1
);
return
null
;
}
charsetSelect
=
data
.
readUnsignedShort
();
if
(
charsetSelect
>
1
&&
charsetSelect
<
0x10
)
{
String
charsetName
=
"ISO-8859-"
+
charsetSelect
;
return
data
.
readString
(
length
-
3
,
Charset
.
forName
(
charsetName
));
}
return
null
;
}
}
}
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