mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-22 07:48:52 -05:00
Reduce read buffer to make sure slow network IO is not unnecessarily excessive
This commit is contained in:
parent
0f95884d84
commit
b6b942bddd
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user