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

Accept small files (useful for automated image processing)

This commit is contained in:
Reinhard Pointner 2019-06-15 14:51:16 +07:00
parent 52b8e31d53
commit 898065db31

View File

@ -42,7 +42,7 @@ public class MediaInfo implements MediaCharacteristics {
}
public synchronized MediaInfo open(File file) throws IOException, IllegalArgumentException {
if (!file.isFile() || file.length() < BUFFER_SIZE) {
if (!file.isFile() || file.length() <= 0) {
throw new IllegalArgumentException("Invalid media file: " + file);
}