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
fc2e4ef4
authored
Aug 07, 2020
by
olly
Committed by
Oliver Woodman
Aug 19, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
TS EsInfo: Be robust against a invalid descriptor length
Issue: Issue: #7722 PiperOrigin-RevId: 325431839
parent
62829be1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
library/core/src/main/java/com/google/android/exoplayer2/extractor/ts/TsExtractor.java
library/core/src/main/java/com/google/android/exoplayer2/extractor/ts/TsExtractor.java
View file @
fc2e4ef4
...
@@ -657,6 +657,10 @@ public final class TsExtractor implements Extractor {
...
@@ -657,6 +657,10 @@ public final class TsExtractor implements Extractor {
int
descriptorTag
=
data
.
readUnsignedByte
();
int
descriptorTag
=
data
.
readUnsignedByte
();
int
descriptorLength
=
data
.
readUnsignedByte
();
int
descriptorLength
=
data
.
readUnsignedByte
();
int
positionOfNextDescriptor
=
data
.
getPosition
()
+
descriptorLength
;
int
positionOfNextDescriptor
=
data
.
getPosition
()
+
descriptorLength
;
if
(
positionOfNextDescriptor
>
descriptorsEndPosition
)
{
// Descriptor claims to extend past the end position. Skip it.
break
;
}
if
(
descriptorTag
==
TS_PMT_DESC_REGISTRATION
)
{
// registration_descriptor
if
(
descriptorTag
==
TS_PMT_DESC_REGISTRATION
)
{
// registration_descriptor
long
formatIdentifier
=
data
.
readUnsignedInt
();
long
formatIdentifier
=
data
.
readUnsignedInt
();
if
(
formatIdentifier
==
AC3_FORMAT_IDENTIFIER
)
{
if
(
formatIdentifier
==
AC3_FORMAT_IDENTIFIER
)
{
...
...
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