aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs
diff options
context:
space:
mode:
authorNyanmisaka <nst799610810@gmail.com>2023-06-20 04:18:55 +0800
committerGitHub <noreply@github.com>2023-06-20 04:18:55 +0800
commit3b12dc6d7ae0984aa96929b89dfbeb73f55568d9 (patch)
treeb7d23e24efb7ff2c760e813b1f2e30b1a59b57be /Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs
parent990bcc507ff9902b2bac7527f201194991a58f98 (diff)
Apply suggestions from code review
Co-authored-by: Cody Robibero <cody@robibe.ro>
Diffstat (limited to 'Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs')
-rw-r--r--Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs b/Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs
index ad1fce0f1..adb248670 100644
--- a/Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs
+++ b/Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs
@@ -227,11 +227,13 @@ public static class HlsCodecStringHelpers
bitDepth = 8;
}
- result.Append("." + level)
- .Append(tierFlag ? "H" : "M");
+ result.Append('.')
+ .Append(level)
+ .Append(tierFlag ? 'H' : 'M');
string bitDepthD2 = bitDepth.ToString("D2", CultureInfo.InvariantCulture);
- result.Append("." + bitDepthD2);
+ result.Append('.')
+ .Append(bitDepthD2);
return result.ToString();
}