Add support for out-of-spec but existent, Dolby Vision Profile 8 CCid 6 media. (#11334)

This commit is contained in:
GeorgeH005 2024-04-10 22:33:24 +03:00 committed by GitHub
parent f7f7ba8853
commit e93fa27e4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
},