Merge pull request #7141 from nyanmisaka/seek-audio

Seek the external audio stream
This commit is contained in:
Cody Robibero 2022-01-09 06:57:01 -07:00 committed by GitHub
commit d24683f0ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -886,6 +886,13 @@ namespace MediaBrowser.Controller.MediaEncoding
if (state.AudioStream != null && state.AudioStream.IsExternal)
{
// Also seek the external audio stream.
var seekAudioParam = GetFastSeekCommandLineParameter(state, options);
if (!string.IsNullOrEmpty(seekAudioParam))
{
arg.Append(' ').Append(seekAudioParam);
}
arg.Append(" -i \"").Append(state.AudioStream.Path).Append('"');
}