1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-22 07:48:52 -05:00

Don't require minimum file size when using MediaInfo on small files (e.g. image files)

This commit is contained in:
Reinhard Pointner 2019-05-06 15:50:20 +07:00
parent d58e5426c7
commit d0598ea9b9

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() < 64 * 1024) {
if (!file.isFile()) {
throw new IllegalArgumentException("Invalid media file: " + file);
}