Fixed: SDR Files Being Parsed As HLG
This commit is contained in:
parent
48f0291884
commit
11e5c5a11b
|
@ -107,7 +107,7 @@ namespace NzbDrone.Core.Test.MediaFiles.MediaInfo
|
||||||
[TestCase(10, "", "", "", null, HdrFormat.None)]
|
[TestCase(10, "", "", "", null, HdrFormat.None)]
|
||||||
[TestCase(10, "bt709", "bt709", "", null, HdrFormat.None)]
|
[TestCase(10, "bt709", "bt709", "", null, HdrFormat.None)]
|
||||||
[TestCase(8, "bt2020", "smpte2084", "", null, HdrFormat.None)]
|
[TestCase(8, "bt2020", "smpte2084", "", null, HdrFormat.None)]
|
||||||
[TestCase(10, "bt2020", "bt2020-10", "", null, HdrFormat.Hlg10)]
|
[TestCase(10, "bt2020", "bt2020-10", "", null, HdrFormat.None)]
|
||||||
[TestCase(10, "bt2020", "arib-std-b67", "", null, HdrFormat.Hlg10)]
|
[TestCase(10, "bt2020", "arib-std-b67", "", null, HdrFormat.Hlg10)]
|
||||||
[TestCase(10, "bt2020", "smpte2084", "", null, HdrFormat.Pq10)]
|
[TestCase(10, "bt2020", "smpte2084", "", null, HdrFormat.Pq10)]
|
||||||
[TestCase(10, "bt2020", "smpte2084", "FFMpegCore.SideData", null, HdrFormat.Pq10)]
|
[TestCase(10, "bt2020", "smpte2084", "FFMpegCore.SideData", null, HdrFormat.Pq10)]
|
||||||
|
|
|
@ -22,10 +22,10 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
|
||||||
private readonly List<FFProbePixelFormat> _pixelFormats;
|
private readonly List<FFProbePixelFormat> _pixelFormats;
|
||||||
|
|
||||||
public const int MINIMUM_MEDIA_INFO_SCHEMA_REVISION = 8;
|
public const int MINIMUM_MEDIA_INFO_SCHEMA_REVISION = 8;
|
||||||
public const int CURRENT_MEDIA_INFO_SCHEMA_REVISION = 10;
|
public const int CURRENT_MEDIA_INFO_SCHEMA_REVISION = 11;
|
||||||
|
|
||||||
private static readonly string[] ValidHdrColourPrimaries = { "bt2020" };
|
private static readonly string[] ValidHdrColourPrimaries = { "bt2020" };
|
||||||
private static readonly string[] HlgTransferFunctions = { "bt2020-10", "arib-std-b67" };
|
private static readonly string[] HlgTransferFunctions = { "arib-std-b67" };
|
||||||
private static readonly string[] PqTransferFunctions = { "smpte2084" };
|
private static readonly string[] PqTransferFunctions = { "smpte2084" };
|
||||||
private static readonly string[] ValidHdrTransferFunctions = HlgTransferFunctions.Concat(PqTransferFunctions).ToArray();
|
private static readonly string[] ValidHdrTransferFunctions = HlgTransferFunctions.Concat(PqTransferFunctions).ToArray();
|
||||||
|
|
||||||
|
|
|
@ -642,7 +642,7 @@ namespace NzbDrone.Core.Organizer
|
||||||
new Dictionary<string, int>(FileNameBuilderTokenEqualityComparer.Instance)
|
new Dictionary<string, int>(FileNameBuilderTokenEqualityComparer.Instance)
|
||||||
{
|
{
|
||||||
{ MediaInfoVideoDynamicRangeToken, 5 },
|
{ MediaInfoVideoDynamicRangeToken, 5 },
|
||||||
{ MediaInfoVideoDynamicRangeTypeToken, 10 }
|
{ MediaInfoVideoDynamicRangeTypeToken, 11 }
|
||||||
};
|
};
|
||||||
|
|
||||||
private void AddMediaInfoTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, EpisodeFile episodeFile)
|
private void AddMediaInfoTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, EpisodeFile episodeFile)
|
||||||
|
|
Loading…
Reference in New Issue