Reformatted to fix lint error

This commit is contained in:
Kerry Cao 2023-05-05 01:54:50 -06:00
parent a647f44029
commit 463fb9bf6b
2 changed files with 31 additions and 31 deletions

View file

@ -1,5 +1,5 @@
using System.Net; using System.IO.Compression;
using System.IO.Compression; using System.Net;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace FFMpegCore.Helpers; namespace FFMpegCore.Helpers;
@ -9,6 +9,21 @@ namespace FFMpegCore.Helpers;
/// </summary> /// </summary>
public class FFMpegDownloader public class FFMpegDownloader
{ {
/// <summary>
/// Supported FFMpeg versions
/// </summary>
public enum FFMpegVersions
{
V4_4_1,
V4_2_1,
V4_2,
V4_1,
V4_0,
V3_4,
V3_3,
V3_2
}
private static readonly Dictionary<FFMpegVersions, string> Windows64FFMpegDownloadUrls = new() private static readonly Dictionary<FFMpegVersions, string> Windows64FFMpegDownloadUrls = new()
{ {
{ {
@ -42,7 +57,7 @@ public class FFMpegDownloader
{ {
FFMpegVersions.V3_2, FFMpegVersions.V3_2,
"https://github.com/ffbinaries/ffbinaries-prebuilt/releases/download/v3.2/ffmpeg-3.2-win-64.zip" "https://github.com/ffbinaries/ffbinaries-prebuilt/releases/download/v3.2/ffmpeg-3.2-win-64.zip"
}, }
}; };
private static readonly Dictionary<FFMpegVersions, string> Windows32FFMpegDownloadUrls = new() private static readonly Dictionary<FFMpegVersions, string> Windows32FFMpegDownloadUrls = new()
@ -75,23 +90,8 @@ public class FFMpegDownloader
{ {
FFMpegVersions.V3_2, FFMpegVersions.V3_2,
"https://github.com/ffbinaries/ffbinaries-prebuilt/releases/download/v3.2/ffmpeg-3.2-win-32.zip" "https://github.com/ffbinaries/ffbinaries-prebuilt/releases/download/v3.2/ffmpeg-3.2-win-32.zip"
},
};
/// <summary>
/// Supported FFMpeg versions
/// </summary>
public enum FFMpegVersions
{
V4_4_1,
V4_2_1,
V4_2,
V4_1,
V4_0,
V3_4,
V3_3,
V3_2
} }
};
/// <summary> /// <summary>
/// Downloads the latest FFMpeg suite binaries to bin directory. /// Downloads the latest FFMpeg suite binaries to bin directory.