fix: Use direct ByteBuffer

This commit is contained in:
Marc Rousavy 2023-08-23 14:47:42 +02:00
parent 3a0d7b3c91
commit 86468e3e1f

View File

@ -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();