Apply suggestions from code review

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
Nyanmisaka 2023-06-20 04:18:55 +08:00 committed by GitHub
parent 990bcc507f
commit 3b12dc6d7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}