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

This commit is contained in:
Nyanmisaka authored and GitHub committed 2025-06-26 17:48:43 -06:00
1 parent 10d0cec7b9
commit ebdc756547
1 file changed
+2 -1
@@ -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);
}