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
89080874
authored
Aug 29, 2018
by
Art Vynogradov
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add parsing a-law and mu-law atom types
parent
a429f481
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/Atom.java
library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/AtomParsers.java
library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/Atom.java
View file @
89080874
...
@@ -143,6 +143,8 @@ import java.util.List;
...
@@ -143,6 +143,8 @@ import java.util.List;
public
static
final
int
TYPE_vpcC
=
Util
.
getIntegerCodeForString
(
"vpcC"
);
public
static
final
int
TYPE_vpcC
=
Util
.
getIntegerCodeForString
(
"vpcC"
);
public
static
final
int
TYPE_camm
=
Util
.
getIntegerCodeForString
(
"camm"
);
public
static
final
int
TYPE_camm
=
Util
.
getIntegerCodeForString
(
"camm"
);
public
static
final
int
TYPE_alac
=
Util
.
getIntegerCodeForString
(
"alac"
);
public
static
final
int
TYPE_alac
=
Util
.
getIntegerCodeForString
(
"alac"
);
public
static
final
int
TYPE_alaw
=
Util
.
getIntegerCodeForString
(
"alaw"
);
public
static
final
int
TYPE_ulaw
=
Util
.
getIntegerCodeForString
(
"ulaw"
);
public
final
int
type
;
public
final
int
type
;
...
...
library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/AtomParsers.java
View file @
89080874
...
@@ -660,7 +660,8 @@ import java.util.List;
...
@@ -660,7 +660,8 @@ import java.util.List;
||
childAtomType
==
Atom
.
TYPE_dtsh
||
childAtomType
==
Atom
.
TYPE_dtsl
||
childAtomType
==
Atom
.
TYPE_dtsh
||
childAtomType
==
Atom
.
TYPE_dtsl
||
childAtomType
==
Atom
.
TYPE_samr
||
childAtomType
==
Atom
.
TYPE_sawb
||
childAtomType
==
Atom
.
TYPE_samr
||
childAtomType
==
Atom
.
TYPE_sawb
||
childAtomType
==
Atom
.
TYPE_lpcm
||
childAtomType
==
Atom
.
TYPE_sowt
||
childAtomType
==
Atom
.
TYPE_lpcm
||
childAtomType
==
Atom
.
TYPE_sowt
||
childAtomType
==
Atom
.
TYPE__mp3
||
childAtomType
==
Atom
.
TYPE_alac
)
{
||
childAtomType
==
Atom
.
TYPE__mp3
||
childAtomType
==
Atom
.
TYPE_alac
||
childAtomType
==
Atom
.
TYPE_alaw
||
childAtomType
==
Atom
.
TYPE_ulaw
)
{
parseAudioSampleEntry
(
stsd
,
childAtomType
,
childStartPosition
,
childAtomSize
,
trackId
,
parseAudioSampleEntry
(
stsd
,
childAtomType
,
childStartPosition
,
childAtomSize
,
trackId
,
language
,
isQuickTime
,
drmInitData
,
out
,
i
);
language
,
isQuickTime
,
drmInitData
,
out
,
i
);
}
else
if
(
childAtomType
==
Atom
.
TYPE_TTML
||
childAtomType
==
Atom
.
TYPE_tx3g
}
else
if
(
childAtomType
==
Atom
.
TYPE_TTML
||
childAtomType
==
Atom
.
TYPE_tx3g
...
@@ -953,6 +954,10 @@ import java.util.List;
...
@@ -953,6 +954,10 @@ import java.util.List;
mimeType
=
MimeTypes
.
AUDIO_MPEG
;
mimeType
=
MimeTypes
.
AUDIO_MPEG
;
}
else
if
(
atomType
==
Atom
.
TYPE_alac
)
{
}
else
if
(
atomType
==
Atom
.
TYPE_alac
)
{
mimeType
=
MimeTypes
.
AUDIO_ALAC
;
mimeType
=
MimeTypes
.
AUDIO_ALAC
;
}
else
if
(
atomType
==
Atom
.
TYPE_alaw
)
{
mimeType
=
MimeTypes
.
AUDIO_ALAW
;
}
else
if
(
atomType
==
Atom
.
TYPE_ulaw
)
{
mimeType
=
MimeTypes
.
AUDIO_MLAW
;
}
}
byte
[]
initializationData
=
null
;
byte
[]
initializationData
=
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