1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-21 23:38:50 -05:00

Reduce read buffer to make sure slow network IO is not unnecessarily excessive

This commit is contained in:
Reinhard Pointner 2019-05-23 05:42:49 +07:00
parent 0f95884d84
commit b6b942bddd

View File

@ -77,7 +77,7 @@ public class MediaInfo implements MediaCharacteristics {
}
private boolean openViaBuffer(RandomAccessFile f) throws IOException {
byte[] buffer = new byte[4 * 1024 * 1024]; // use large buffer to reduce JNA calls
byte[] buffer = new byte[64 * 1024]; // use large buffer to reduce JNA calls
int read = -1;
if (0 == MediaInfoLibrary.INSTANCE.Open_Buffer_Init(handle, f.length(), 0)) {