Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
54798207
Commit
54798207
authored
Jun 16, 2022
by
xiongguangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const payload type variable start's letter is lower case
parent
6a337adc
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
28 行增加
和
28 行删除
+28
-28
src/Common/config.cpp
+14
-14
src/Common/config.h
+7
-7
src/Rtp/GB28181Process.cpp
+7
-7
没有找到文件。
src/Common/config.cpp
查看文件 @
54798207
...
...
@@ -278,25 +278,25 @@ namespace RtpProxy {
const
string
kDumpDir
=
RTP_PROXY_FIELD
"dumpDir"
;
const
string
kTimeoutSec
=
RTP_PROXY_FIELD
"timeoutSec"
;
const
string
kPortRange
=
RTP_PROXY_FIELD
"port_range"
;
const
string
K
H264PT
=
RTP_PROXY_FIELD
"h264_pt"
;
const
string
K
H265PT
=
RTP_PROXY_FIELD
"h265_pt"
;
const
string
K
PSPT
=
RTP_PROXY_FIELD
"ps_pt"
;
const
string
K
TSPT
=
RTP_PROXY_FIELD
"ts_pt"
;
const
string
K
OpusPT
=
RTP_PROXY_FIELD
"opus_pt"
;
const
string
K
G711UPT
=
RTP_PROXY_FIELD
"g711u_pt"
;
const
string
K
G711APT
=
RTP_PROXY_FIELD
"g711a_pt"
;
const
string
k
H264PT
=
RTP_PROXY_FIELD
"h264_pt"
;
const
string
k
H265PT
=
RTP_PROXY_FIELD
"h265_pt"
;
const
string
k
PSPT
=
RTP_PROXY_FIELD
"ps_pt"
;
const
string
k
TSPT
=
RTP_PROXY_FIELD
"ts_pt"
;
const
string
k
OpusPT
=
RTP_PROXY_FIELD
"opus_pt"
;
const
string
k
G711UPT
=
RTP_PROXY_FIELD
"g711u_pt"
;
const
string
k
G711APT
=
RTP_PROXY_FIELD
"g711a_pt"
;
static
onceToken
token
([]()
{
mINI
::
Instance
()[
kDumpDir
]
=
""
;
mINI
::
Instance
()[
kTimeoutSec
]
=
15
;
mINI
::
Instance
()[
kPortRange
]
=
"30000-35000"
;
mINI
::
Instance
()[
K
H264PT
]
=
98
;
mINI
::
Instance
()[
K
H265PT
]
=
99
;
mINI
::
Instance
()[
K
PSPT
]
=
96
;
mINI
::
Instance
()[
K
TSPT
]
=
33
;
mINI
::
Instance
()[
K
OpusPT
]
=
100
;
mINI
::
Instance
()[
K
G711UPT
]
=
0
;
mINI
::
Instance
()[
K
G711APT
]
=
8
;
mINI
::
Instance
()[
k
H264PT
]
=
98
;
mINI
::
Instance
()[
k
H265PT
]
=
99
;
mINI
::
Instance
()[
k
PSPT
]
=
96
;
mINI
::
Instance
()[
k
TSPT
]
=
33
;
mINI
::
Instance
()[
k
OpusPT
]
=
100
;
mINI
::
Instance
()[
k
G711UPT
]
=
0
;
mINI
::
Instance
()[
k
G711APT
]
=
8
;
});
}
// namespace RtpProxy
...
...
src/Common/config.h
查看文件 @
54798207
...
...
@@ -325,19 +325,19 @@ extern const std::string kTimeoutSec;
// 该范围同时限制rtsp服务器udp端口范围
extern
const
std
::
string
kPortRange
;
// rtp server h264的pt
extern
const
std
::
string
K
H264PT
;
extern
const
std
::
string
k
H264PT
;
// rtp server h265的pt
extern
const
std
::
string
K
H265PT
;
extern
const
std
::
string
k
H265PT
;
// rtp server ps 的pt
extern
const
std
::
string
K
PSPT
;
extern
const
std
::
string
k
PSPT
;
// rtp server ts 的pt
extern
const
std
::
string
K
TSPT
;
extern
const
std
::
string
k
TSPT
;
// rtp server opus 的pt
extern
const
std
::
string
K
OpusPT
;
extern
const
std
::
string
k
OpusPT
;
// rtp server g711u 的pt
extern
const
std
::
string
K
G711UPT
;
extern
const
std
::
string
k
G711UPT
;
// rtp server g711a 的pt
extern
const
std
::
string
K
G711APT
;
extern
const
std
::
string
k
G711APT
;
}
// namespace RtpProxy
/**
...
...
src/Rtp/GB28181Process.cpp
查看文件 @
54798207
...
...
@@ -66,13 +66,13 @@ void GB28181Process::onRtpSorted(RtpPacket::Ptr rtp) {
}
bool
GB28181Process
::
inputRtp
(
bool
,
const
char
*
data
,
size_t
data_len
)
{
GET_CONFIG
(
uint32_t
,
h264_pt
,
RtpProxy
::
K
H264PT
);
GET_CONFIG
(
uint32_t
,
h265_pt
,
RtpProxy
::
K
H265PT
);
GET_CONFIG
(
uint32_t
,
ps_pt
,
RtpProxy
::
K
PSPT
);
GET_CONFIG
(
uint32_t
,
ts_pt
,
RtpProxy
::
K
TSPT
);
GET_CONFIG
(
uint32_t
,
opus_pt
,
RtpProxy
::
K
OpusPT
);
GET_CONFIG
(
uint32_t
,
g711u_pt
,
RtpProxy
::
K
G711UPT
);
GET_CONFIG
(
uint32_t
,
g711a_pt
,
RtpProxy
::
K
G711APT
);
GET_CONFIG
(
uint32_t
,
h264_pt
,
RtpProxy
::
k
H264PT
);
GET_CONFIG
(
uint32_t
,
h265_pt
,
RtpProxy
::
k
H265PT
);
GET_CONFIG
(
uint32_t
,
ps_pt
,
RtpProxy
::
k
PSPT
);
GET_CONFIG
(
uint32_t
,
ts_pt
,
RtpProxy
::
k
TSPT
);
GET_CONFIG
(
uint32_t
,
opus_pt
,
RtpProxy
::
k
OpusPT
);
GET_CONFIG
(
uint32_t
,
g711u_pt
,
RtpProxy
::
k
G711UPT
);
GET_CONFIG
(
uint32_t
,
g711a_pt
,
RtpProxy
::
k
G711APT
);
RtpHeader
*
header
=
(
RtpHeader
*
)
data
;
auto
pt
=
header
->
pt
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论