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
4237e3d3
authored
Oct 27, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Cleanup following #884 II
parent
02cc495f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
library/src/main/java/com/google/android/exoplayer/extractor/mp4/AtomParsers.java
library/src/main/java/com/google/android/exoplayer/extractor/mp4/AtomParsers.java
View file @
4237e3d3
...
@@ -454,14 +454,15 @@ import java.util.List;
...
@@ -454,14 +454,15 @@ import java.util.List;
parseAudioSampleEntry
(
stsd
,
childAtomType
,
childStartPosition
,
childAtomSize
,
trackId
,
parseAudioSampleEntry
(
stsd
,
childAtomType
,
childStartPosition
,
childAtomSize
,
trackId
,
durationUs
,
language
,
out
,
i
);
durationUs
,
language
,
out
,
i
);
}
else
if
(
childAtomType
==
Atom
.
TYPE_TTML
)
{
}
else
if
(
childAtomType
==
Atom
.
TYPE_TTML
)
{
out
.
mediaFormat
=
MediaFormat
.
createTextFormat
(
Integer
.
toString
(
trackId
),
MimeTypes
.
APPLICATION_TTML
,
out
.
mediaFormat
=
MediaFormat
.
createTextFormat
(
Integer
.
toString
(
trackId
),
MediaFormat
.
NO_VALUE
,
durationUs
,
language
);
M
imeTypes
.
APPLICATION_TTML
,
M
ediaFormat
.
NO_VALUE
,
durationUs
,
language
);
}
else
if
(
childAtomType
==
Atom
.
TYPE_tx3g
)
{
}
else
if
(
childAtomType
==
Atom
.
TYPE_tx3g
)
{
out
.
mediaFormat
=
MediaFormat
.
createTextFormat
(
Integer
.
toString
(
trackId
),
MimeTypes
.
APPLICATION_TX3G
,
out
.
mediaFormat
=
MediaFormat
.
createTextFormat
(
Integer
.
toString
(
trackId
),
MediaFormat
.
NO_VALUE
,
durationUs
,
language
);
M
imeTypes
.
APPLICATION_TX3G
,
M
ediaFormat
.
NO_VALUE
,
durationUs
,
language
);
}
else
if
(
childAtomType
==
Atom
.
TYPE_stpp
)
{
}
else
if
(
childAtomType
==
Atom
.
TYPE_stpp
)
{
out
.
mediaFormat
=
MediaFormat
.
createTextFormat
(
Integer
.
toString
(
trackId
),
MimeTypes
.
APPLICATION_TTML
,
out
.
mediaFormat
=
MediaFormat
.
createTextFormat
(
Integer
.
toString
(
trackId
),
MediaFormat
.
NO_VALUE
,
durationUs
,
language
,
0
/* subsample timing is absolute */
);
MimeTypes
.
APPLICATION_TTML
,
MediaFormat
.
NO_VALUE
,
durationUs
,
language
,
0
/* subsample timing is absolute */
);
}
}
stsd
.
setPosition
(
childStartPosition
+
childAtomSize
);
stsd
.
setPosition
(
childStartPosition
+
childAtomSize
);
}
}
...
@@ -531,9 +532,9 @@ import java.util.List;
...
@@ -531,9 +532,9 @@ import java.util.List;
return
;
return
;
}
}
out
.
mediaFormat
=
MediaFormat
.
createVideoFormat
(
Integer
.
toString
(
trackId
),
mimeType
,
MediaFormat
.
NO_VALUE
,
out
.
mediaFormat
=
MediaFormat
.
createVideoFormat
(
Integer
.
toString
(
trackId
),
mimeType
,
MediaFormat
.
NO_VALUE
,
durationUs
,
width
,
height
,
initializationData
,
rotationDegrees
,
MediaFormat
.
NO_VALUE
,
MediaFormat
.
NO_VALUE
,
durationUs
,
width
,
height
,
initializationData
,
pixelWidthHeightRatio
);
rotationDegrees
,
pixelWidthHeightRatio
);
}
}
private
static
AvcCData
parseAvcCFromParent
(
ParsableByteArray
parent
,
int
position
)
{
private
static
AvcCData
parseAvcCFromParent
(
ParsableByteArray
parent
,
int
position
)
{
...
@@ -768,8 +769,8 @@ import java.util.List;
...
@@ -768,8 +769,8 @@ import java.util.List;
return
;
return
;
}
}
out
.
mediaFormat
=
MediaFormat
.
createAudioFormat
(
Integer
.
toString
(
trackId
),
mimeType
,
MediaFormat
.
NO_VALUE
,
out
.
mediaFormat
=
MediaFormat
.
createAudioFormat
(
Integer
.
toString
(
trackId
),
mimeType
,
sampleSize
,
durationUs
,
channelCount
,
sampleRate
,
MediaFormat
.
NO_VALUE
,
sampleSize
,
durationUs
,
channelCount
,
sampleRate
,
initializationData
==
null
?
null
:
Collections
.
singletonList
(
initializationData
),
initializationData
==
null
?
null
:
Collections
.
singletonList
(
initializationData
),
language
);
language
);
}
}
...
...
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