change Substring to AsSpan

Co-authored-by: Bond-009 <bond.009@outlook.com>
pull/10321/head
fei long 1 year ago committed by GitHub
parent 808e59fdda
commit 33b3331c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6244,7 +6244,7 @@ namespace MediaBrowser.Controller.MediaEncoding
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);
}

Loading…
Cancel
Save