mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
change Substring to AsSpan
Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
parent
808e59fdda
commit
33b3331c72
@ -6244,7 +6244,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
|
|
||||||
if (GetAudioEncoder(state).StartsWith("pcm_", StringComparison.Ordinal))
|
if (GetAudioEncoder(state).StartsWith("pcm_", StringComparison.Ordinal))
|
||||||
{
|
{
|
||||||
audioTranscodeParams.Add(string.Concat("-f ", GetAudioEncoder(state).Substring(4)));
|
audioTranscodeParams.Add(string.Concat("-f ", GetAudioEncoder(state).AsSpan(4)));
|
||||||
audioTranscodeParams.Add("-ar " + state.BaseRequest.AudioBitRate);
|
audioTranscodeParams.Add("-ar " + state.BaseRequest.AudioBitRate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user