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
072c63c3
authored
Jun 18, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Handle stbl atoms with no samples.
Github issue: #554
parent
8c98c588
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 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 @
072c63c3
...
@@ -102,10 +102,13 @@ import java.util.List;
...
@@ -102,10 +102,13 @@ import java.util.List;
int
fixedSampleSize
=
stsz
.
readUnsignedIntToInt
();
int
fixedSampleSize
=
stsz
.
readUnsignedIntToInt
();
int
sampleCount
=
stsz
.
readUnsignedIntToInt
();
int
sampleCount
=
stsz
.
readUnsignedIntToInt
();
long
[]
offsets
=
new
long
[
sampleCount
];
int
[]
sizes
=
new
int
[
sampleCount
];
int
[]
sizes
=
new
int
[
sampleCount
];
long
[]
timestamps
=
new
long
[
sampleCount
];
long
[]
timestamps
=
new
long
[
sampleCount
];
long
[]
offsets
=
new
long
[
sampleCount
];
int
[]
flags
=
new
int
[
sampleCount
];
int
[]
flags
=
new
int
[
sampleCount
];
if
(
sampleCount
==
0
)
{
return
new
TrackSampleTable
(
offsets
,
sizes
,
timestamps
,
flags
);
}
// Prepare to read chunk offsets.
// Prepare to read chunk offsets.
chunkOffsets
.
setPosition
(
Atom
.
FULL_HEADER_SIZE
);
chunkOffsets
.
setPosition
(
Atom
.
FULL_HEADER_SIZE
);
...
...
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