The Free Software Media System - Server Backend & API
Add color transfer to ffprobe results
MrTimscampi428e1b04fc94
diff --git a/MediaBrowser.MediaEncoding/Probing/MediaStreamInfo.cs b/MediaBrowser.MediaEncoding/Probing/MediaStreamInfo.csindex 0b2f1d231e..fa51e61a26 100644--- a/MediaBrowser.MediaEncoding/Probing/MediaStreamInfo.cs+++ b/MediaBrowser.MediaEncoding/Probing/MediaStreamInfo.cs@@ -278,5 +278,12 @@ namespace MediaBrowser.MediaEncoding.Probing/// <value>The disposition.</value>[JsonPropertyName("disposition")]public IReadOnlyDictionary<string, int> Disposition { get; set; }++ /// <summary>+ /// Gets or sets the color transfer.+ /// </summary>+ /// <value>The color transfer.</value>+ [JsonPropertyName("color_transfer")]+ public string ColorTransfer { get; set; }}}diff --git a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.csindex b24d97f4ef..41daa22d6d 100644--- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs+++ b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs@@ -695,6 +695,11 @@ namespace MediaBrowser.MediaEncoding.Probing{stream.RefFrames = streamInfo.Refs;}++ if (!string.IsNullOrEmpty(streamInfo.ColorTransfer))+ {+ stream.ColorTransfer = streamInfo.ColorTransfer;+ }}else{