Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
d8b4a929
提交
d8b4a929
authored
4月 19, 2020
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Ensure RemoteBitrateEstimatorAbsSendTime::IncomingPacket() receives int64_t
上级
8ab389b4
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
5 行删除
+14
-5
DepLibUV.hpp
worker/include/DepLibUV.hpp
+9
-4
TransportCongestionControlServer.cpp
worker/src/RTC/TransportCongestionControlServer.cpp
+5
-1
没有找到文件。
worker/include/DepLibUV.hpp
浏览文件 @
d8b4a929
...
@@ -37,9 +37,7 @@ public:
...
@@ -37,9 +37,7 @@ public:
uint64_t
time
=
DepLibUV
::
GetTimeMs
();
uint64_t
time
=
DepLibUV
::
GetTimeMs
();
if
(
time
>
MaxInt64
)
if
(
time
>
MaxInt64
)
{
time
-=
MaxInt64
-
1
;
time
-=
MaxInt64
-
1
;
}
return
static_cast
<
int64_t
>
(
time
);
return
static_cast
<
int64_t
>
(
time
);
}
}
...
@@ -52,9 +50,16 @@ public:
...
@@ -52,9 +50,16 @@ public:
uint64_t
time
=
DepLibUV
::
GetTimeUs
();
uint64_t
time
=
DepLibUV
::
GetTimeUs
();
if
(
time
>
MaxInt64
)
if
(
time
>
MaxInt64
)
{
time
-=
MaxInt64
-
1
;
time
-=
MaxInt64
-
1
;
}
return
static_cast
<
int64_t
>
(
time
);
}
static
int64_t
TimeMs2TimeMsInt64
(
uint64_t
time
)
{
static
constexpr
uint64_t
MaxInt64
{
std
::
numeric_limits
<
int64_t
>::
max
()
};
if
(
time
>
MaxInt64
)
time
-=
MaxInt64
-
1
;
return
static_cast
<
int64_t
>
(
time
);
return
static_cast
<
int64_t
>
(
time
);
}
}
...
...
worker/src/RTC/TransportCongestionControlServer.cpp
浏览文件 @
d8b4a929
...
@@ -180,7 +180,11 @@ namespace RTC
...
@@ -180,7 +180,11 @@ namespace RTC
if
(
!
packet
->
ReadAbsSendTime
(
absSendTime
))
if
(
!
packet
->
ReadAbsSendTime
(
absSendTime
))
break
;
break
;
this
->
rembServer
->
IncomingPacket
(
nowMs
,
packet
->
GetPayloadLength
(),
*
packet
,
absSendTime
);
// NOTE: nowMs is uint64_t but we need to "convert" it to int64_t before
// we give it to libwebrtc lib.
auto
nowMsInt64
=
DepLibUV
::
TimeMs2TimeMsInt64
(
nowMs
);
this
->
rembServer
->
IncomingPacket
(
nowMsInt64
,
packet
->
GetPayloadLength
(),
*
packet
,
absSendTime
);
break
;
break
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论