mirror of https://github.com/Sonarr/Sonarr
parent
46a42e2901
commit
082c098420
|
@ -480,8 +480,8 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
|
|||
var videoDynamicRange = "";
|
||||
|
||||
if (mediaInfo.VideoBitDepth >= 10 &&
|
||||
!string.IsNullOrEmpty(mediaInfo.VideoColourPrimaries) &&
|
||||
!string.IsNullOrEmpty(mediaInfo.VideoTransferCharacteristics))
|
||||
mediaInfo.VideoColourPrimaries.IsNotNullOrWhiteSpace() &&
|
||||
mediaInfo.VideoTransferCharacteristics.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
if (mediaInfo.VideoColourPrimaries.EqualsIgnoreCase(ValidHdrColourPrimaries) &&
|
||||
ValidHdrTransferFunctions.Any(mediaInfo.VideoTransferCharacteristics.Contains))
|
||||
|
|
|
@ -101,7 +101,9 @@ namespace NzbDrone.Core.Organizer
|
|||
var mediaInfo = new MediaInfoModel()
|
||||
{
|
||||
VideoCodec = "AVC",
|
||||
VideoBitDepth = 8,
|
||||
VideoBitDepth = 10,
|
||||
VideoColourPrimaries = "BT.2020",
|
||||
VideoTransferCharacteristics = "HLG",
|
||||
AudioFormat = "DTS",
|
||||
AudioChannels = 6,
|
||||
AudioChannelPositions = "3/2/0.1",
|
||||
|
@ -112,7 +114,9 @@ namespace NzbDrone.Core.Organizer
|
|||
var mediaInfoAnime = new MediaInfoModel()
|
||||
{
|
||||
VideoCodec = "AVC",
|
||||
VideoBitDepth = 8,
|
||||
VideoBitDepth = 10,
|
||||
VideoColourPrimaries = "BT.2020",
|
||||
VideoTransferCharacteristics = "HLG",
|
||||
AudioFormat = "DTS",
|
||||
AudioChannels = 6,
|
||||
AudioChannelPositions = "3/2/0.1",
|
||||
|
|
Loading…
Reference in New Issue