Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
18f1d568
提交
18f1d568
authored
7月 24, 2016
作者:
Seven Du
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-9357 cleanup and tweak debug
上级
e42997ef
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
10 行删除
+6
-10
switch_vpx.c
src/switch_vpx.c
+6
-10
没有找到文件。
src/switch_vpx.c
浏览文件 @
18f1d568
...
@@ -966,7 +966,8 @@ static switch_status_t buffer_vp9_packets(vpx_context_t *context, switch_frame_t
...
@@ -966,7 +966,8 @@ static switch_status_t buffer_vp9_packets(vpx_context_t *context, switch_frame_t
int
len
=
0
;
int
len
=
0
;
#ifdef DEBUG_VP9
#ifdef DEBUG_VP9
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"%02x %02x %02x %02x m=%d len=%4d "
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
frame
->
m
?
SWITCH_LOG_ERROR
:
SWITCH_LOG_INFO
,
"[%02x %02x %02x %02x] m=%d len=%4d seq=%d ts=%d ssrc=%u "
"have_pid=%d "
"have_pid=%d "
"have_p_layer=%d "
"have_p_layer=%d "
"have_layer_ind=%d "
"have_layer_ind=%d "
...
@@ -975,7 +976,7 @@ static switch_status_t buffer_vp9_packets(vpx_context_t *context, switch_frame_t
...
@@ -975,7 +976,7 @@ static switch_status_t buffer_vp9_packets(vpx_context_t *context, switch_frame_t
"end=%d "
"end=%d "
"have_ss=%d "
"have_ss=%d "
"zero=%d
\n
"
,
"zero=%d
\n
"
,
*
data
,
*
(
data
+
1
),
*
(
data
+
2
),
*
(
data
+
3
),
frame
->
m
,
frame
->
datalen
,
*
data
,
*
(
data
+
1
),
*
(
data
+
2
),
*
(
data
+
3
),
frame
->
m
,
frame
->
datalen
,
frame
->
seq
,
frame
->
timestamp
,
frame
->
ssrc
,
desc
->
have_pid
,
desc
->
have_pid
,
desc
->
have_p_layer
,
desc
->
have_p_layer
,
desc
->
have_layer_ind
,
desc
->
have_layer_ind
,
...
@@ -1001,7 +1002,7 @@ static switch_status_t buffer_vp9_packets(vpx_context_t *context, switch_frame_t
...
@@ -1001,7 +1002,7 @@ static switch_status_t buffer_vp9_packets(vpx_context_t *context, switch_frame_t
vp9
++
;
vp9
++
;
#ifdef DEBUG_VP9
#ifdef DEBUG_VP9
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_
ERROR
,
"have pid: %d start=%d end=%d
\n
"
,
pid
,
desc
->
start
,
desc
->
end
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_
INFO
,
"have pid: %d start=%d end=%d
\n
"
,
pid
,
desc
->
start
,
desc
->
end
);
#endif
#endif
}
}
...
@@ -1072,12 +1073,7 @@ static switch_status_t buffer_vp9_packets(vpx_context_t *context, switch_frame_t
...
@@ -1072,12 +1073,7 @@ static switch_status_t buffer_vp9_packets(vpx_context_t *context, switch_frame_t
goto
end
;
goto
end
;
}
}
if
(
!
switch_buffer_inuse
(
context
->
vpx_packet_buffer
))
{
// middle packet
if
(
!
switch_buffer_inuse
(
context
->
vpx_packet_buffer
))
{
// start packet
//if (desc->start) {
// switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG1, "got invalid vp9 packet, packet loss? resetting buffer\n");
// switch_buffer_zero(context->vpx_packet_buffer);
//}
//} else { // start packet
if
(
!
desc
->
start
)
{
if
(
!
desc
->
start
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"got invalid vp9 packet, packet loss? waiting for a start packet
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"got invalid vp9 packet, packet loss? waiting for a start packet
\n
"
);
goto
end
;
goto
end
;
...
@@ -1090,7 +1086,7 @@ static switch_status_t buffer_vp9_packets(vpx_context_t *context, switch_frame_t
...
@@ -1090,7 +1086,7 @@ static switch_status_t buffer_vp9_packets(vpx_context_t *context, switch_frame_t
end:
end:
#ifdef DEBUG_VP9
#ifdef DEBUG_VP9
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_
ERROR
,
"buffered %d bytes, buffer size: %"
SWITCH_SIZE_T_FMT
"
\n
"
,
len
,
switch_buffer_inuse
(
context
->
vpx_packet_buffer
));
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_
INFO
,
"buffered %d bytes, buffer size: %"
SWITCH_SIZE_T_FMT
"
\n
"
,
len
,
switch_buffer_inuse
(
context
->
vpx_packet_buffer
));
#endif
#endif
return
SWITCH_STATUS_SUCCESS
;
return
SWITCH_STATUS_SUCCESS
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论