change output format from jpg to png

change output format from jpg to png
pull/166/head
xufulong 4 years ago
parent 5ba51d9b82
commit 2490447e3e
  1. 18
      app/src/main/java/com/frank/ffmpeg/util/FileUtil.java

@ -226,4 +226,22 @@ public class FileUtil {
return file.exists() && file.delete(); return file.exists() && file.delete();
} }
public static boolean deleteFolder(String path) {
if (TextUtils.isEmpty(path)) {
return false;
}
boolean result = true;
File tempFile = new File(path);
if (!tempFile.exists()) {
return tempFile.mkdir();
}
if (tempFile.isDirectory() && tempFile.listFiles() != null) {
File[] files = tempFile.listFiles();
for (File file : files) {
result &= file.delete();
}
}
return result;
}
} }

Loading…
Cancel
Save