From e93fa27e4c1404220524d33d2034275344e55a85 Mon Sep 17 00:00:00 2001 From: GeorgeH005 <72687949+GeorgeH005@users.noreply.github.com> Date: Wed, 10 Apr 2024 22:33:24 +0300 Subject: [PATCH] Add support for out-of-spec but existent, Dolby Vision Profile 8 CCid 6 media. (#11334) --- MediaBrowser.Model/Entities/MediaStream.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs index a620bc9b54..0d2d7c6965 100644 --- a/MediaBrowser.Model/Entities/MediaStream.cs +++ b/MediaBrowser.Model/Entities/MediaStream.cs @@ -730,6 +730,8 @@ namespace MediaBrowser.Model.Entities 1 => (VideoRange.HDR, VideoRangeType.DOVIWithHDR10), 4 => (VideoRange.HDR, VideoRangeType.DOVIWithHLG), 2 => (VideoRange.SDR, VideoRangeType.DOVIWithSDR), + // While not in Dolby Spec, Profile 8 CCid 6 media are possible to create, and since CCid 6 stems from Bluray (Profile 7 originally) an HDR10 base layer is guaranteed to exist. + 6 => (VideoRange.HDR, VideoRangeType.DOVIWithHDR10), // There is no other case to handle here as per Dolby Spec. Default case included for completeness and linting purposes _ => (VideoRange.SDR, VideoRangeType.SDR) },