fix: Use direct ByteBuffer
This commit is contained in:
parent
3a0d7b3c91
commit
86468e3e1f
@ -105,7 +105,7 @@ public class Frame {
|
||||
int totalSize = ySize + uSize + vSize;
|
||||
|
||||
if (byteArrayCache == null) {
|
||||
byteArrayCache = ByteBuffer.allocate(totalSize);
|
||||
byteArrayCache = ByteBuffer.allocateDirect(totalSize);
|
||||
}
|
||||
|
||||
byteArrayCache.rewind();
|
||||
|
Loading…
Reference in New Issue
Block a user