Added JsonIgnore to Encoding on FFOptions since a breacking change in System.Text.Json introduced in .NET8.0 prevent us from deserializing this type https://github.com/dotnet/docs/issues/37041

This commit is contained in:
Yan Gauthier 2024-08-15 15:28:01 -04:00
parent f71e172f66
commit 91e8e1e18d

View file

@ -1,4 +1,5 @@
using System.Text;
using System.Text.Json.Serialization;
using FFMpegCore.Enums;
namespace FFMpegCore
@ -20,6 +21,7 @@ public class FFOptions : ICloneable
/// </summary>
public string TemporaryFilesFolder { get; set; } = Path.GetTempPath();
[JsonIgnore]
/// <summary>
/// Encoding used for parsing stdout/stderr on ffmpeg and ffprobe processes
/// </summary>