mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 06:23:03 +03:00
Merge pull request #7964 from jellyfin/dovi-side-data
(cherry picked from commit 39d185c7b1)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
This commit is contained in:
committed by
Joshua Boniface
parent
e61c80fed7
commit
fe32b5e333
@@ -841,6 +841,27 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
{
|
||||
stream.ColorPrimaries = streamInfo.ColorPrimaries;
|
||||
}
|
||||
|
||||
if (streamInfo.SideDataList != null)
|
||||
{
|
||||
foreach (var data in streamInfo.SideDataList)
|
||||
{
|
||||
// Parse Dolby Vision metadata from side_data
|
||||
if (string.Equals(data.SideDataType, "DOVI configuration record", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
stream.DvVersionMajor = data.DvVersionMajor;
|
||||
stream.DvVersionMinor = data.DvVersionMinor;
|
||||
stream.DvProfile = data.DvProfile;
|
||||
stream.DvLevel = data.DvLevel;
|
||||
stream.RpuPresentFlag = data.RpuPresentFlag;
|
||||
stream.ElPresentFlag = data.ElPresentFlag;
|
||||
stream.BlPresentFlag = data.BlPresentFlag;
|
||||
stream.DvBlSignalCompatibilityId = data.DvBlSignalCompatibilityId;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user