mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Fix ByteBuffer.array() warning
PiperOrigin-RevId: 594274620
This commit is contained in:
parent
1609928242
commit
b0e00a7d28
1 changed files with 3 additions and 1 deletions
|
|
@ -34,7 +34,9 @@ public final class DumpableMp4Box implements Dumper.Dumpable {
|
|||
* @param box The Mp4 box to wrap.
|
||||
*/
|
||||
public DumpableMp4Box(ByteBuffer box) {
|
||||
this.box = new ParsableByteArray(box.array());
|
||||
byte[] boxArray = new byte[box.remaining()];
|
||||
box.get(boxArray);
|
||||
this.box = new ParsableByteArray(boxArray);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in a new issue