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
5ba3f1ee
authored
Oct 28, 2014
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix build.
parent
119eb671
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
library/src/main/java/com/google/android/exoplayer/parser/ts/TsExtractor.java
library/src/main/java/com/google/android/exoplayer/parser/ts/TsExtractor.java
View file @
5ba3f1ee
...
...
@@ -28,7 +28,6 @@ import android.util.Log;
import
android.util.Pair
;
import
android.util.SparseArray
;
import
java.nio.ByteBuffer
;
import
java.util.Collections
;
import
java.util.LinkedList
;
import
java.util.Queue
;
...
...
@@ -237,13 +236,11 @@ public final class TsExtractor {
private
void
convert
(
Sample
in
,
SampleHolder
out
)
{
if
(
out
.
data
==
null
||
out
.
data
.
capacity
()
<
in
.
size
)
{
if
(
out
.
allowDataBufferReplacement
)
{
out
.
data
=
ByteBuffer
.
allocate
(
in
.
size
);
}
else
{
throw
new
IndexOutOfBoundsException
(
"Buffer too small, and replacement not enabled"
);
}
out
.
replaceBuffer
(
in
.
size
);
}
if
(
out
.
data
!=
null
)
{
out
.
data
.
put
(
in
.
data
,
0
,
in
.
size
);
}
out
.
data
.
put
(
in
.
data
,
0
,
in
.
size
);
out
.
size
=
in
.
size
;
out
.
flags
=
in
.
flags
;
out
.
timeUs
=
in
.
timeUs
;
...
...
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