aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Helpers/DynamicHlsHelper.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2023-08-26 17:28:34 +0200
committerGitHub <noreply@github.com>2023-08-26 17:28:34 +0200
commit9ae429b6f64531a2f063a04d0fdd31cceb16a9b5 (patch)
treeaf2dce1e454665f90ea69ef3c752680db73d2be7 /Jellyfin.Api/Helpers/DynamicHlsHelper.cs
parent3ee1141a06d41ac080cd5fd6b2253e1ed23d675e (diff)
parent18a311d32fd6e3cdfed466017bda46566a013106 (diff)
Merge pull request #10141 from Bond-009/nullable3
Diffstat (limited to 'Jellyfin.Api/Helpers/DynamicHlsHelper.cs')
-rw-r--r--Jellyfin.Api/Helpers/DynamicHlsHelper.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Helpers/DynamicHlsHelper.cs b/Jellyfin.Api/Helpers/DynamicHlsHelper.cs
index 63667e7e6..fe602fba3 100644
--- a/Jellyfin.Api/Helpers/DynamicHlsHelper.cs
+++ b/Jellyfin.Api/Helpers/DynamicHlsHelper.cs
@@ -693,7 +693,7 @@ public class DynamicHlsHelper
// Currently we only transcode to 8 bits AV1
int bitDepth = 8;
if (EncodingHelper.IsCopyCodec(state.OutputVideoCodec)
- && state.VideoStream != null
+ && state.VideoStream is not null
&& state.VideoStream.BitDepth.HasValue)
{
bitDepth = state.VideoStream.BitDepth.Value;