mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Conserve ByteOrder when growingDecoderInputBuffer
#exo-offload PiperOrigin-RevId: 302403507
This commit is contained in:
parent
d38c6c84a6
commit
1fa9dbc31e
1 changed files with 1 additions and 0 deletions
|
|
@ -137,6 +137,7 @@ public class DecoderInputBuffer extends Buffer {
|
|||
}
|
||||
// Instantiate a new buffer if possible.
|
||||
ByteBuffer newData = createReplacementByteBuffer(requiredCapacity);
|
||||
newData.order(data.order());
|
||||
// Copy data up to the current position from the old buffer to the new one.
|
||||
if (position > 0) {
|
||||
data.flip();
|
||||
|
|
|
|||
Loading…
Reference in a new issue