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
1 changed files with 1 additions and 1 deletions

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);
}