mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Update FFmpeg download URL in setup project
This commit is contained in:
parent
b432383ef1
commit
4d383f50cf
2 changed files with 5 additions and 5 deletions
|
@ -50,7 +50,7 @@ public static bool ExtractFFmpeg(string archivePath, string extractPath)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ZipManager.Extract(archivePath, extractPath, false, entry => entry.Name.Equals("ffmpeg.exe", StringComparison.OrdinalIgnoreCase), 1_000_000_000);
|
ZipManager.Extract(archivePath, extractPath, false, entry => entry.Name.Equals("ffmpeg.exe", StringComparison.OrdinalIgnoreCase), 100_000_000);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
|
@ -341,8 +341,8 @@ private static void CopyFFmpeg(string destination, bool include32bit, bool inclu
|
||||||
{
|
{
|
||||||
if (!File.Exists(FFmpeg32bit))
|
if (!File.Exists(FFmpeg32bit))
|
||||||
{
|
{
|
||||||
string filename = SetupHelpers.DownloadFile("https://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-4.3.1-win32-static.zip");
|
string filename = SetupHelpers.DownloadFile("https://github.com/ShareX/FFmpeg/releases/download/v4.3.1/ffmpeg-4.3.1-win32.zip");
|
||||||
ZipManager.Extract(filename, ".", false, entry => entry.Name.Equals("ffmpeg.exe", StringComparison.OrdinalIgnoreCase), 1_000_000_000);
|
ZipManager.Extract(filename, ".", false, entry => entry.Name.Equals("ffmpeg.exe", StringComparison.OrdinalIgnoreCase), 100_000_000);
|
||||||
File.Move("ffmpeg.exe", FFmpeg32bit);
|
File.Move("ffmpeg.exe", FFmpeg32bit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -353,8 +353,8 @@ private static void CopyFFmpeg(string destination, bool include32bit, bool inclu
|
||||||
{
|
{
|
||||||
if (!File.Exists(FFmpeg64bit))
|
if (!File.Exists(FFmpeg64bit))
|
||||||
{
|
{
|
||||||
string filename = SetupHelpers.DownloadFile("https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-4.3.1-win64-static.zip");
|
string filename = SetupHelpers.DownloadFile("https://github.com/ShareX/FFmpeg/releases/download/v4.3.1/ffmpeg-4.3.1-win64.zip");
|
||||||
ZipManager.Extract(filename, ".", false, entry => entry.Name.Equals("ffmpeg.exe", StringComparison.OrdinalIgnoreCase), 1_000_000_000);
|
ZipManager.Extract(filename, ".", false, entry => entry.Name.Equals("ffmpeg.exe", StringComparison.OrdinalIgnoreCase), 100_000_000);
|
||||||
File.Move("ffmpeg.exe", FFmpeg64bit);
|
File.Move("ffmpeg.exe", FFmpeg64bit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue