diff options
| author | Nyanmisaka <nst799610810@gmail.com> | 2023-06-20 04:18:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-20 04:18:55 +0800 |
| commit | 3b12dc6d7ae0984aa96929b89dfbeb73f55568d9 (patch) | |
| tree | b7d23e24efb7ff2c760e813b1f2e30b1a59b57be /Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs | |
| parent | 990bcc507ff9902b2bac7527f201194991a58f98 (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.cs | 8 |
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(); } |
