public static FfmpegOption load(File file) throws IOException {
Properties prop = new Properties();
- prop.loadFromXML(new FileInputStream(file));
+ try (final FileInputStream fis = new FileInputStream(file)) {
+ prop.loadFromXML(fis);
+ }
String ext = prop.getProperty("EXT");
String main = prop.getProperty("MAIN", "");
String in = prop.getProperty("IN", "");