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
90601267
authored
Feb 18, 2020
by
Pierre-Hugues Husson
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Use ParsableBitArray's readString
parent
274743cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 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 @
90601267
...
@@ -116,9 +116,7 @@ public class AitDecoder implements MetadataDecoder {
...
@@ -116,9 +116,7 @@ public class AitDecoder implements MetadataDecoder {
if
(
protocolId
==
TRANSPORT_PROTOCOL_HTTP
)
{
if
(
protocolId
==
TRANSPORT_PROTOCOL_HTTP
)
{
while
(
sectionData
.
getBytePosition
()
<
positionOfNextSection2
)
{
while
(
sectionData
.
getBytePosition
()
<
positionOfNextSection2
)
{
int
urlBaseLength
=
sectionData
.
readBits
(
8
);
int
urlBaseLength
=
sectionData
.
readBits
(
8
);
byte
[]
urlBaseByteArray
=
new
byte
[
urlBaseLength
];
String
urlBase
=
sectionData
.
readString
(
urlBaseLength
,
Charset
.
forName
(
"ASCII"
));
sectionData
.
readBytes
(
urlBaseByteArray
,
0
,
urlBaseLength
);
String
urlBase
=
new
String
(
urlBaseByteArray
,
Charset
.
forName
(
"ASCII"
));
int
extensionCount
=
sectionData
.
readBits
(
8
);
int
extensionCount
=
sectionData
.
readBits
(
8
);
aitUrlBase
=
urlBase
;
aitUrlBase
=
urlBase
;
...
@@ -129,9 +127,7 @@ public class AitDecoder implements MetadataDecoder {
...
@@ -129,9 +127,7 @@ public class AitDecoder implements MetadataDecoder {
}
}
}
}
}
else
if
(
type
==
DESCRIPTOR_SIMPLE_APPLICATION_LOCATION
)
{
}
else
if
(
type
==
DESCRIPTOR_SIMPLE_APPLICATION_LOCATION
)
{
byte
[]
urlByteArray
=
new
byte
[
l
];
String
url
=
sectionData
.
readString
(
l
,
Charset
.
forName
(
"ASCII"
));
sectionData
.
readBytes
(
urlByteArray
,
0
,
l
);
String
url
=
new
String
(
urlByteArray
,
Charset
.
forName
(
"ASCII"
));
aitUrlExtension
=
url
;
aitUrlExtension
=
url
;
}
}
...
...
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