mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Don't check dynamic metadata removal for static HDR formats
Those videos have no metadata to be removed at all, just force transcoding when the client does not support it.
This commit is contained in:
parent
0fc8ed6aeb
commit
368808eba4
@ -2390,6 +2390,12 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
|| (requestHasSDR && videoStream.VideoRangeType == VideoRangeType.DOVIWithSDR)
|
|| (requestHasSDR && videoStream.VideoRangeType == VideoRangeType.DOVIWithSDR)
|
||||||
|| (requestHasHDR10 && videoStream.VideoRangeType == VideoRangeType.HDR10Plus)))
|
|| (requestHasHDR10 && videoStream.VideoRangeType == VideoRangeType.HDR10Plus)))
|
||||||
{
|
{
|
||||||
|
// If the video stream is in a static HDR format, don't allow copy if the client does not support HDR10 or HLG.
|
||||||
|
if (videoStream.VideoRangeType is VideoRangeType.HDR10 or VideoRangeType.HLG)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Check complicated cases where we need to remove dynamic metadata
|
// Check complicated cases where we need to remove dynamic metadata
|
||||||
// Conservatively refuse to copy if the encoder can't remove dynamic metadata,
|
// Conservatively refuse to copy if the encoder can't remove dynamic metadata,
|
||||||
// but a removal is required for compatability reasons.
|
// but a removal is required for compatability reasons.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user