Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
d1049e22
提交
d1049e22
authored
9月 18, 2015
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-8130 fix regression causing seg
上级
4a56b7d1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
3 行删除
+6
-3
switch_jitterbuffer.c
src/switch_jitterbuffer.c
+4
-1
switch_rtp.c
src/switch_rtp.c
+2
-2
没有找到文件。
src/switch_jitterbuffer.c
浏览文件 @
d1049e22
...
...
@@ -376,7 +376,7 @@ static inline uint32_t jb_find_lowest_ts(switch_jb_t *jb)
return
lowest
?
lowest
->
packet
.
header
.
ts
:
0
;
}
#if 0
static inline switch_jb_node_t *jb_find_highest_node(switch_jb_t *jb)
{
switch_jb_node_t *np, *highest = NULL;
...
...
@@ -400,6 +400,7 @@ static inline uint32_t jb_find_highest_ts(switch_jb_t *jb)
return highest ? highest->packet.header.ts : 0;
}
#endif
static
inline
void
jb_hit
(
switch_jb_t
*
jb
)
{
...
...
@@ -525,6 +526,7 @@ static inline void drop_oldest_frame(switch_jb_t *jb)
jb_debug
(
jb
,
1
,
"Dropping oldest frame ts:%u
\n
"
,
ntohl
(
ts
));
}
#if 0
static inline void drop_newest_frame(switch_jb_t *jb)
{
uint32_t ts = jb_find_highest_ts(jb);
...
...
@@ -532,6 +534,7 @@ static inline void drop_newest_frame(switch_jb_t *jb)
drop_ts(jb, ts);
jb_debug(jb, 1, "Dropping highest frame ts:%u\n", ntohl(ts));
}
#endif
static
inline
void
add_node
(
switch_jb_t
*
jb
,
switch_rtp_packet_t
*
packet
,
switch_size_t
len
)
{
...
...
src/switch_rtp.c
浏览文件 @
d1049e22
...
...
@@ -1902,7 +1902,7 @@ static int check_rtcp_and_ice(switch_rtp_t *rtp_session)
int
rtcp_ok
=
0
,
rtcp_fb
=
0
;
switch_time_t
now
=
switch_micro_time_now
();
int
rate
=
0
,
nack_ttl
=
0
;
uint32_t
cur_nack
[
MAX_NACK
-
1
];
uint32_t
cur_nack
[
MAX_NACK
];
if
(
rtp_session
->
flags
[
SWITCH_RTP_FLAG_AUTO_CNG
]
&&
rtp_session
->
send_msg
.
header
.
ts
&&
rtp_session
->
cng_pt
!=
INVALID_PT
&&
(
rtp_session
->
timer
.
samplecount
-
rtp_session
->
last_write_samplecount
>=
rtp_session
->
samples_per_interval
*
60
))
{
...
...
@@ -2064,9 +2064,9 @@ static int check_rtcp_and_ice(switch_rtp_t *rtp_session)
ntohs
(
*
nack
&
0xFFFF
));
rtcp_bytes
+=
sizeof
(
switch_rtcp_ext_hdr_t
)
+
sizeof
(
cur_nack
[
n
]);
cur_nack
[
n
]
=
0
;
}
cur_nack
[
n
]
=
0
;
nack_ttl
=
0
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论