mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 22:17:25 -04:00
Correct VIDEO-RANGE field for HLG content
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
34a89fdefd
commit
5cc451992b
1 changed files with 9 additions and 1 deletions
|
@ -325,6 +325,7 @@ public class DynamicHlsHelper
|
|||
if (state.VideoStream is not null && state.VideoStream.VideoRange != VideoRange.Unknown)
|
||||
{
|
||||
var videoRange = state.VideoStream.VideoRange;
|
||||
var videoRangeType = state.VideoStream.VideoRangeType;
|
||||
if (EncodingHelper.IsCopyCodec(state.OutputVideoCodec))
|
||||
{
|
||||
if (videoRange == VideoRange.SDR)
|
||||
|
@ -334,7 +335,14 @@ public class DynamicHlsHelper
|
|||
|
||||
if (videoRange == VideoRange.HDR)
|
||||
{
|
||||
builder.Append(",VIDEO-RANGE=PQ");
|
||||
if (videoRangeType == VideoRangeType.HLG)
|
||||
{
|
||||
builder.Append(",VIDEO-RANGE=HLG");
|
||||
}
|
||||
else
|
||||
{
|
||||
builder.Append(",VIDEO-RANGE=PQ");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue