Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
dac846cc
提交
dac846cc
authored
4月 30, 2014
作者:
Steve Underwood
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cleared some simple Coverity issues
上级
2cdae46b
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
8 行增加
和
7 行删除
+8
-7
at_interpreter.c
libs/spandsp/src/at_interpreter.c
+2
-2
bert.c
libs/spandsp/src/bert.c
+1
-1
fax.c
libs/spandsp/src/fax.c
+1
-0
g711.h
libs/spandsp/src/spandsp/g711.h
+1
-1
t30.c
libs/spandsp/src/t30.c
+2
-2
t4_tx.c
libs/spandsp/src/t4_tx.c
+1
-1
没有找到文件。
libs/spandsp/src/at_interpreter.c
浏览文件 @
dac846cc
...
@@ -771,8 +771,8 @@ static int parse_string_out(at_state_t *s, const char **t, char **target, const
...
@@ -771,8 +771,8 @@ static int parse_string_out(at_state_t *s, const char **t, char **target, const
default
:
default
:
return
false
;
return
false
;
}
}
while
(
*
t
)
while
(
*
*
t
)
t
++
;
(
*
t
)
++
;
return
true
;
return
true
;
}
}
/*- End of function --------------------------------------------------------*/
/*- End of function --------------------------------------------------------*/
...
...
libs/spandsp/src/bert.c
浏览文件 @
dac846cc
...
@@ -149,7 +149,7 @@ static void assess_error_rate(bert_state_t *s)
...
@@ -149,7 +149,7 @@ static void assess_error_rate(bert_state_t *s)
(i.e. we look for >=10 errors in 1000 bits). We make an assessment every 100 bits, using a sliding
(i.e. we look for >=10 errors in 1000 bits). We make an assessment every 100 bits, using a sliding
window over the last 1000 bits. We assess the 1 in 1000 rate over 10000 bits in a similar way, and
window over the last 1000 bits. We assess the 1 in 1000 rate over 10000 bits in a similar way, and
so on for the lower error rates. */
so on for the lower error rates. */
test
=
fals
e
;
test
=
tru
e
;
for
(
i
=
2
;
i
<=
7
;
i
++
)
for
(
i
=
2
;
i
<=
7
;
i
++
)
{
{
if
(
++
s
->
decade_ptr
[
i
]
<
10
)
if
(
++
s
->
decade_ptr
[
i
]
<
10
)
...
...
libs/spandsp/src/fax.c
浏览文件 @
dac846cc
...
@@ -274,6 +274,7 @@ static void fax_set_rx_type(void *user_data, int type, int bit_rate, int short_t
...
@@ -274,6 +274,7 @@ static void fax_set_rx_type(void *user_data, int type, int bit_rate, int short_t
break
;
break
;
case
T30_MODEM_DONE
:
case
T30_MODEM_DONE
:
span_log
(
&
s
->
logging
,
SPAN_LOG_FLOW
,
"FAX exchange complete
\n
"
);
span_log
(
&
s
->
logging
,
SPAN_LOG_FLOW
,
"FAX exchange complete
\n
"
);
/* Fall through */
default
:
default
:
fax_modems_set_rx_handler
(
t
,
(
span_rx_handler_t
)
&
span_dummy_rx
,
s
,
(
span_rx_fillin_handler_t
)
&
span_dummy_rx_fillin
,
s
);
fax_modems_set_rx_handler
(
t
,
(
span_rx_handler_t
)
&
span_dummy_rx
,
s
,
(
span_rx_fillin_handler_t
)
&
span_dummy_rx_fillin
,
s
);
break
;
break
;
...
...
libs/spandsp/src/spandsp/g711.h
浏览文件 @
dac846cc
...
@@ -226,7 +226,7 @@ static __inline__ uint8_t linear_to_alaw(int linear)
...
@@ -226,7 +226,7 @@ static __inline__ uint8_t linear_to_alaw(int linear)
return
(
uint8_t
)
(
0x7F
^
mask
);
return
(
uint8_t
)
(
0x7F
^
mask
);
}
}
/* We must be just a tiny step below zero */
/* We must be just a tiny step below zero */
return
(
uint8_t
)
(
0x00
^
mask
)
;
return
(
uint8_t
)
mask
;
}
}
/* Combine the sign, segment, and quantization bits. */
/* Combine the sign, segment, and quantization bits. */
return
(
uint8_t
)
(((
seg
<<
4
)
|
((
linear
>>
((
seg
)
?
(
seg
+
3
)
:
4
))
&
0x0F
))
^
mask
);
return
(
uint8_t
)
(((
seg
<<
4
)
|
((
linear
>>
((
seg
)
?
(
seg
+
3
)
:
4
))
&
0x0F
))
^
mask
);
...
...
libs/spandsp/src/t30.c
浏览文件 @
dac846cc
...
@@ -964,7 +964,7 @@ static int send_nsf_frame(t30_state_t *s)
...
@@ -964,7 +964,7 @@ static int send_nsf_frame(t30_state_t *s)
span_log
(
&
s
->
logging
,
SPAN_LOG_FLOW
,
"Sending user supplied NSF - %d octets
\n
"
,
s
->
tx_info
.
nsf_len
);
span_log
(
&
s
->
logging
,
SPAN_LOG_FLOW
,
"Sending user supplied NSF - %d octets
\n
"
,
s
->
tx_info
.
nsf_len
);
s
->
tx_info
.
nsf
[
0
]
=
ADDRESS_FIELD
;
s
->
tx_info
.
nsf
[
0
]
=
ADDRESS_FIELD
;
s
->
tx_info
.
nsf
[
1
]
=
CONTROL_FIELD_NON_FINAL_FRAME
;
s
->
tx_info
.
nsf
[
1
]
=
CONTROL_FIELD_NON_FINAL_FRAME
;
s
->
tx_info
.
nsf
[
2
]
=
(
uint8_t
)
(
T30_NSF
|
s
->
dis_received
)
;
s
->
tx_info
.
nsf
[
2
]
=
T30_NSF
;
send_frame
(
s
,
s
->
tx_info
.
nsf
,
s
->
tx_info
.
nsf_len
+
3
);
send_frame
(
s
,
s
->
tx_info
.
nsf
,
s
->
tx_info
.
nsf_len
+
3
);
return
true
;
return
true
;
}
}
...
@@ -996,7 +996,7 @@ static int send_nsc_frame(t30_state_t *s)
...
@@ -996,7 +996,7 @@ static int send_nsc_frame(t30_state_t *s)
span_log
(
&
s
->
logging
,
SPAN_LOG_FLOW
,
"Sending user supplied NSC - %d octets
\n
"
,
s
->
tx_info
.
nsc_len
);
span_log
(
&
s
->
logging
,
SPAN_LOG_FLOW
,
"Sending user supplied NSC - %d octets
\n
"
,
s
->
tx_info
.
nsc_len
);
s
->
tx_info
.
nsc
[
0
]
=
ADDRESS_FIELD
;
s
->
tx_info
.
nsc
[
0
]
=
ADDRESS_FIELD
;
s
->
tx_info
.
nsc
[
1
]
=
CONTROL_FIELD_NON_FINAL_FRAME
;
s
->
tx_info
.
nsc
[
1
]
=
CONTROL_FIELD_NON_FINAL_FRAME
;
s
->
tx_info
.
nsc
[
2
]
=
(
uint8_t
)
(
T30_NSC
|
s
->
dis_received
)
;
s
->
tx_info
.
nsc
[
2
]
=
T30_NSC
;
send_frame
(
s
,
s
->
tx_info
.
nsc
,
s
->
tx_info
.
nsc_len
+
3
);
send_frame
(
s
,
s
->
tx_info
.
nsc
,
s
->
tx_info
.
nsc_len
+
3
);
return
true
;
return
true
;
}
}
...
...
libs/spandsp/src/t4_tx.c
浏览文件 @
dac846cc
...
@@ -325,7 +325,7 @@ static int best_colour_resolution(float actual, int allowed_resolutions)
...
@@ -325,7 +325,7 @@ static int best_colour_resolution(float actual, int allowed_resolutions)
return
-
1
;
return
-
1
;
best_ratio
=
0
.
0
f
;
best_ratio
=
0
.
0
f
;
best_entry
=
-
1
;
best_entry
=
0
;
for
(
i
=
0
;
x_res_table
[
i
].
resolution
>
0
.
0
f
;
i
++
)
for
(
i
=
0
;
x_res_table
[
i
].
resolution
>
0
.
0
f
;
i
++
)
{
{
if
(
!
(
allowed_resolutions
&
x_res_table
[
i
].
resolution_code
))
if
(
!
(
allowed_resolutions
&
x_res_table
[
i
].
resolution_code
))
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论