优化音视频时间戳同步逻辑

This commit is contained in:
xia-chu
2025-06-29 17:55:17 +08:00
parent 38821b295a
commit 18ca4cf48f
2 changed files with 25 additions and 8 deletions

View File

@@ -117,7 +117,7 @@ public:
* [AUTO-TRANSLATED:7ac41a76]
*/
void syncTo(Stamp &other);
void syncTo(Stamp &other, int count = 1);
/**
* 是否允许时间戳回退
@@ -145,7 +145,7 @@ private:
private:
bool _playback = false;
bool _need_sync = false;
int _need_sync = 0;
// 默认不允许时间戳回滚 [AUTO-TRANSLATED:0163ff03]
// Default does not allow timestamp rollback
bool _enable_rollback = false;