Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
03b3800e
提交
03b3800e
authored
2月 11, 2017
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use size_t as array/vector index
上级
f113f73d
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
+4
-4
RtpDictionaries.h
worker/include/RTC/RtpDictionaries.h
+1
-1
RtpParameters.cpp
worker/src/RTC/RtpDictionaries/RtpParameters.cpp
+3
-3
没有找到文件。
worker/include/RTC/RtpDictionaries.h
浏览文件 @
03b3800e
...
@@ -281,7 +281,7 @@ namespace RTC
...
@@ -281,7 +281,7 @@ namespace RTC
Json
::
Value
toJson
();
Json
::
Value
toJson
();
void
ReduceHeaderExtensions
(
std
::
vector
<
RtpHeaderExtension
>&
supportedHeaderExtensions
);
void
ReduceHeaderExtensions
(
std
::
vector
<
RtpHeaderExtension
>&
supportedHeaderExtensions
);
uint32_t
GetClockRateForEncoding
(
uint8
_t
encodingIdx
);
uint32_t
GetClockRateForEncoding
(
size
_t
encodingIdx
);
private
:
private
:
void
ValidateCodecs
();
void
ValidateCodecs
();
...
...
worker/src/RTC/RtpDictionaries/RtpParameters.cpp
浏览文件 @
03b3800e
...
@@ -184,12 +184,12 @@ namespace RTC
...
@@ -184,12 +184,12 @@ namespace RTC
this
->
headerExtensions
=
updatedHeaderExtensions
;
this
->
headerExtensions
=
updatedHeaderExtensions
;
}
}
uint32_t
RtpParameters
::
GetClockRateForEncoding
(
uint8
_t
encodingIdx
)
uint32_t
RtpParameters
::
GetClockRateForEncoding
(
size
_t
encodingIdx
)
{
{
MS_TRACE
();
MS_TRACE
();
if
(
this
->
encodings
.
size
()
<
encodingIdx
+
1
)
if
(
this
->
encodings
.
size
()
<
encodingIdx
+
1
)
MS_ABORT
(
"no such a encoding [encodingIdx:%
"
PRIu8
"
]"
,
encodingIdx
);
MS_ABORT
(
"no such a encoding [encodingIdx:%
zu
]"
,
encodingIdx
);
uint8_t
payloadType
=
this
->
encodings
[
encodingIdx
].
codecPayloadType
;
uint8_t
payloadType
=
this
->
encodings
[
encodingIdx
].
codecPayloadType
;
uint32_t
clockRate
=
0
;
uint32_t
clockRate
=
0
;
...
@@ -210,7 +210,7 @@ namespace RTC
...
@@ -210,7 +210,7 @@ namespace RTC
// This should never happen.
// This should never happen.
if
(
it
==
this
->
codecs
.
end
())
if
(
it
==
this
->
codecs
.
end
())
{
{
MS_ABORT
(
"no valid codec payload type for the requested encoding [encodingIdx:%
"
PRIu8
"
]"
,
encodingIdx
);
MS_ABORT
(
"no valid codec payload type for the requested encoding [encodingIdx:%
zu
]"
,
encodingIdx
);
}
}
return
clockRate
;
return
clockRate
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论