修复相对时间戳模式下时间戳回退导致音视频不同步的问题 (#2894 #2877)

加大时间戳回退容忍度,最大回退阈值改成与跳变最大幅度一致
This commit is contained in:
fruit Juice 2023-10-11 14:52:16 +08:00 committed by GitHub
parent fdc00d5a02
commit c25e76311f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {