diff --git a/app/src/main/java/app/revanced/integrations/patches/VideoInformation.java b/app/src/main/java/app/revanced/integrations/patches/VideoInformation.java index 2b9bea41..81ae8ce2 100644 --- a/app/src/main/java/app/revanced/integrations/patches/VideoInformation.java +++ b/app/src/main/java/app/revanced/integrations/patches/VideoInformation.java @@ -136,7 +136,7 @@ public final class VideoInformation { final long videoLength = getVideoLength(); // Prevent issues such as play/ pause button or autoplay not working. - final long seekToMilliseconds = millisecond > videoLength ? Integer.MAX_VALUE : millisecond; + final long seekToMilliseconds = Math.min(millisecond, VideoInformation.getVideoLength() - 250); ReVancedUtils.verifyOnMainThread(); try {