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
716cbcea
authored
Jul 08, 2021
by
Scott
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Updates to mp4 atom extractor/parser for dtsx support.
parent
a55c0654
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/Atom.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/AtomParsers.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/Atom.java
View file @
716cbcea
...
...
@@ -163,6 +163,9 @@ import java.util.List;
public
static
final
int
TYPE_dtse
=
0x64747365
;
@SuppressWarnings
(
"ConstantCaseForConstants"
)
public
static
final
int
TYPE_dtsx
=
0x64747378
;
@SuppressWarnings
(
"ConstantCaseForConstants"
)
public
static
final
int
TYPE_ddts
=
0x64647473
;
@SuppressWarnings
(
"ConstantCaseForConstants"
)
...
...
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/AtomParsers.java
View file @
716cbcea
...
...
@@ -964,6 +964,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
||
childAtomType
==
Atom
.
TYPE_dtse
||
childAtomType
==
Atom
.
TYPE_dtsh
||
childAtomType
==
Atom
.
TYPE_dtsl
||
childAtomType
==
Atom
.
TYPE_dtsx
||
childAtomType
==
Atom
.
TYPE_samr
||
childAtomType
==
Atom
.
TYPE_sawb
||
childAtomType
==
Atom
.
TYPE_lpcm
...
...
@@ -1368,6 +1369,8 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
mimeType
=
MimeTypes
.
AUDIO_DTS_HD
;
}
else
if
(
atomType
==
Atom
.
TYPE_dtse
)
{
mimeType
=
MimeTypes
.
AUDIO_DTS_EXPRESS
;
}
else
if
(
atomType
==
Atom
.
TYPE_dtsx
)
{
mimeType
=
MimeTypes
.
AUDIO_DTS_X
;
}
else
if
(
atomType
==
Atom
.
TYPE_samr
)
{
mimeType
=
MimeTypes
.
AUDIO_AMR_NB
;
}
else
if
(
atomType
==
Atom
.
TYPE_sawb
)
{
...
...
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