From c25e76311ff0a203f0103564f2b1baa6d4077355 Mon Sep 17 00:00:00 2001 From: fruit Juice <2317232721@qq.com> Date: Wed, 11 Oct 2023 14:52:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=B8=E5=AF=B9=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=88=B3=E6=A8=A1=E5=BC=8F=E4=B8=8B=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=88=B3=E5=9B=9E=E9=80=80=E5=AF=BC=E8=87=B4=E9=9F=B3=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E4=B8=8D=E5=90=8C=E6=AD=A5=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#2894=20#2877)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 加大时间戳回退容忍度,最大回退阈值改成与跳变最大幅度一致 --- src/Common/Stamp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/Stamp.cpp b/src/Common/Stamp.cpp index 87282c39..2656a176 100644 --- a/src/Common/Stamp.cpp +++ b/src/Common/Stamp.cpp @@ -50,7 +50,7 @@ int64_t DeltaStamp::deltaStamp(int64_t stamp) { _last_stamp = stamp; // 如果时间戳回退不多,那么返回负值,否则返回加1 - return -ret < MAX_CTS ? ret : 1; + return -ret < MAX_DELTA_STAMP ? ret : 1; } void Stamp::setPlayBack(bool playback) {