Fix -fps_mode option being applied on input (#14379)

This commit is contained in:
Nyanmisaka 2025-06-27 07:48:43 +08:00 committed by GitHub
parent 10d0cec7b9
commit ebdc756547
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7151,7 +7151,8 @@ namespace MediaBrowser.Controller.MediaEncoding
inputModifier += " -async " + state.InputAudioSync;
}
if (!string.IsNullOrEmpty(state.InputVideoSync))
// The -fps_mode option cannot be applied to input
if (!string.IsNullOrEmpty(state.InputVideoSync) && _mediaEncoder.EncoderVersion < new Version(5, 1))
{
inputModifier += GetVideoSyncOption(state.InputVideoSync, _mediaEncoder.EncoderVersion);
}