From 91e8e1e18da36f2b6bb3a750f6e2b48bc8065c03 Mon Sep 17 00:00:00 2001 From: Yan Gauthier Date: Thu, 15 Aug 2024 15:28:01 -0400 Subject: [PATCH] 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 --- FFMpegCore/FFOptions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FFMpegCore/FFOptions.cs b/FFMpegCore/FFOptions.cs index 3194874..52a3a0a 100644 --- a/FFMpegCore/FFOptions.cs +++ b/FFMpegCore/FFOptions.cs @@ -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 /// public string TemporaryFilesFolder { get; set; } = Path.GetTempPath(); + [JsonIgnore] /// /// Encoding used for parsing stdout/stderr on ffmpeg and ffprobe processes ///