mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Increase ffmpeg extract size limit to 200mb
This commit is contained in:
parent
47330e6d36
commit
dd9f7a6b6d
2 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ public static bool ExtractFFmpeg(string archivePath, string extractPath)
|
|||
{
|
||||
try
|
||||
{
|
||||
ZipManager.Extract(archivePath, extractPath, false, entry => entry.Name.Equals("ffmpeg.exe", StringComparison.OrdinalIgnoreCase), 100_000_000);
|
||||
ZipManager.Extract(archivePath, extractPath, false, entry => entry.Name.Equals("ffmpeg.exe", StringComparison.OrdinalIgnoreCase), 200_000_000);
|
||||
return true;
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
|
@ -344,7 +344,7 @@ private static void CopyFFmpeg(string destination, bool include32bit, bool inclu
|
|||
if (!File.Exists(FFmpeg32bit))
|
||||
{
|
||||
string filePath = SetupHelpers.DownloadFile("https://github.com/ShareX/FFmpeg/releases/download/v4.3.1/ffmpeg-4.3.1-win32.zip");
|
||||
ZipManager.Extract(filePath, ".", false, entry => entry.Name.Equals("ffmpeg.exe", StringComparison.OrdinalIgnoreCase), 100_000_000);
|
||||
ZipManager.Extract(filePath, ".", false, entry => entry.Name.Equals("ffmpeg.exe", StringComparison.OrdinalIgnoreCase), 200_000_000);
|
||||
File.Move("ffmpeg.exe", FFmpeg32bit);
|
||||
}
|
||||
|
||||
|
@ -356,7 +356,7 @@ private static void CopyFFmpeg(string destination, bool include32bit, bool inclu
|
|||
if (!File.Exists(FFmpeg64bit))
|
||||
{
|
||||
string filePath = SetupHelpers.DownloadFile("https://github.com/ShareX/FFmpeg/releases/download/v4.3.1/ffmpeg-4.3.1-win64.zip");
|
||||
ZipManager.Extract(filePath, ".", false, entry => entry.Name.Equals("ffmpeg.exe", StringComparison.OrdinalIgnoreCase), 100_000_000);
|
||||
ZipManager.Extract(filePath, ".", false, entry => entry.Name.Equals("ffmpeg.exe", StringComparison.OrdinalIgnoreCase), 200_000_000);
|
||||
File.Move("ffmpeg.exe", FFmpeg64bit);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue