Browse Source

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

Nyanmisaka 1 ngày trước cách đây
mục cha
commit
ebdc756547
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

+ 2 - 1
MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

@@ -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);
             }