From 0f28d39127bac42d9a459d921f830aa21b490329 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 2 Jun 2023 21:38:30 +0200 Subject: [PATCH] =?UTF-8?q?Do=20not=20add=201=C2=B5S=20to=20the=20PTS=20in?= =?UTF-8?q?=20corner=20cases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The PTS must be monotonically increasing, but not strictly. --- server/src/main/java/com/genymobile/scrcpy/AudioCapture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java b/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java index 7b20cce4..ee2f30b7 100644 --- a/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java +++ b/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java @@ -163,7 +163,7 @@ public final class AudioCapture { // - an estimation from the previous PTS and the packet size as a fallback. // // Therefore, the property that PTS are monotonically increasing is no guaranteed in corner cases, so enforce it. - pts = previousPts + 1; + pts = previousPts; } previousPts = pts;