mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix ByteBuffer.array() warning
PiperOrigin-RevId: 594274620
This commit is contained in:
parent
1609928242
commit
b0e00a7d28
@ -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…
x
Reference in New Issue
Block a user