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
1fa9dbc3
authored
Mar 23, 2020
by
krocard
Committed by
Oliver Woodman
Mar 25, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Conserve ByteOrder when growingDecoderInputBuffer
#exo-offload PiperOrigin-RevId: 302403507
parent
d38c6c84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
library/common/src/main/java/com/google/android/exoplayer2/decoder/DecoderInputBuffer.java
library/common/src/main/java/com/google/android/exoplayer2/decoder/DecoderInputBuffer.java
View file @
1fa9dbc3
...
@@ -137,6 +137,7 @@ public class DecoderInputBuffer extends Buffer {
...
@@ -137,6 +137,7 @@ public class DecoderInputBuffer extends Buffer {
}
}
// Instantiate a new buffer if possible.
// Instantiate a new buffer if possible.
ByteBuffer
newData
=
createReplacementByteBuffer
(
requiredCapacity
);
ByteBuffer
newData
=
createReplacementByteBuffer
(
requiredCapacity
);
newData
.
order
(
data
.
order
());
// Copy data up to the current position from the old buffer to the new one.
// Copy data up to the current position from the old buffer to the new one.
if
(
position
>
0
)
{
if
(
position
>
0
)
{
data
.
flip
();
data
.
flip
();
...
...
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