mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-18 04:26:44 +00:00
chore: bump system.text.json to v8.0.4
This commit is contained in:
parent
eb221c3e49
commit
d5a2e5cbe6
2 changed files with 13 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Instances" Version="3.0.0" />
|
||||
<PackageReference Include="System.Text.Json" Version="7.0.3" />
|
||||
<PackageReference Include="System.Text.Json" Version="8.0.4" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using FFMpegCore.Enums;
|
||||
|
||||
namespace FFMpegCore
|
||||
|
@ -20,10 +21,20 @@ public class FFOptions : ICloneable
|
|||
/// </summary>
|
||||
public string TemporaryFilesFolder { get; set; } = Path.GetTempPath();
|
||||
|
||||
/// <summary>
|
||||
/// Encoding web name used to persist encoding <see cref="Encoding"/>
|
||||
/// </summary>
|
||||
public string EncodingWebName { get; set; } = Encoding.Default.WebName;
|
||||
|
||||
/// <summary>
|
||||
/// Encoding used for parsing stdout/stderr on ffmpeg and ffprobe processes
|
||||
/// </summary>
|
||||
public Encoding Encoding { get; set; } = Encoding.Default;
|
||||
[JsonIgnore]
|
||||
public Encoding Encoding
|
||||
{
|
||||
get => Encoding.GetEncoding(EncodingWebName);
|
||||
set => EncodingWebName = value?.WebName ?? Encoding.Default.WebName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The log level to use when calling of the ffmpeg executable.
|
||||
|
|
Loading…
Reference in a new issue