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
b5e6c12e
Commit
b5e6c12e
authored
4 years ago
by
xiongziliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
H264 profile比对不区分大小写
parent
c9a20eda
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
+4
-4
webrtc/Sdp.cpp
+3
-3
webrtc/Sdp.h
+1
-1
没有找到文件。
webrtc/Sdp.cpp
查看文件 @
b5e6c12e
...
@@ -1535,7 +1535,7 @@ static map<string, string, StrCaseCompare> toMap(const vector<std::pair<string/*
...
@@ -1535,7 +1535,7 @@ static map<string, string, StrCaseCompare> toMap(const vector<std::pair<string/*
static
const
string
kProfile
{
"profile-level-id"
};
static
const
string
kProfile
{
"profile-level-id"
};
static
const
string
kMode
{
"packetization-mode"
};
static
const
string
kMode
{
"packetization-mode"
};
bool
RtcConfigure
::
on
MatchCodecPlan
(
const
RtcCodecPlan
&
plan
,
CodecId
codec
){
bool
RtcConfigure
::
on
CheckCodecProfile
(
const
RtcCodecPlan
&
plan
,
CodecId
codec
){
if
(
_rtsp_audio_plan
&&
codec
==
getCodecId
(
_rtsp_audio_plan
->
codec
))
{
if
(
_rtsp_audio_plan
&&
codec
==
getCodecId
(
_rtsp_audio_plan
->
codec
))
{
if
(
plan
.
sample_rate
!=
_rtsp_audio_plan
->
sample_rate
||
plan
.
channel
!=
_rtsp_audio_plan
->
channel
)
{
if
(
plan
.
sample_rate
!=
_rtsp_audio_plan
->
sample_rate
||
plan
.
channel
!=
_rtsp_audio_plan
->
channel
)
{
//音频采样率和通道数必须相同
//音频采样率和通道数必须相同
...
@@ -1548,12 +1548,12 @@ bool RtcConfigure::onMatchCodecPlan(const RtcCodecPlan &plan, CodecId codec){
...
@@ -1548,12 +1548,12 @@ bool RtcConfigure::onMatchCodecPlan(const RtcCodecPlan &plan, CodecId codec){
auto
rtc_fmt_map
=
toMap
(
plan
.
fmtp
);
auto
rtc_fmt_map
=
toMap
(
plan
.
fmtp
);
auto
rtsp_fmt_map
=
toMap
(
_rtsp_video_plan
->
fmtp
);
auto
rtsp_fmt_map
=
toMap
(
_rtsp_video_plan
->
fmtp
);
auto
&
profile
=
rtsp_fmt_map
[
kProfile
];
auto
&
profile
=
rtsp_fmt_map
[
kProfile
];
if
(
!
profile
.
empty
()
&&
profile
!=
rtc_fmt_map
[
kProfile
]
)
{
if
(
!
profile
.
empty
()
&&
strcasecmp
(
profile
.
data
(),
rtc_fmt_map
[
kProfile
].
data
())
)
{
//profile-level-id 不匹配
//profile-level-id 不匹配
return
false
;
return
false
;
}
}
auto
&
mode
=
rtsp_fmt_map
[
kMode
];
auto
&
mode
=
rtsp_fmt_map
[
kMode
];
if
(
!
mode
.
empty
()
&&
mode
!=
rtc_fmt_map
[
kMode
]
)
{
if
(
!
mode
.
empty
()
&&
atoi
(
mode
.
data
())
!=
atoi
(
rtc_fmt_map
[
kMode
].
data
())
)
{
//packetization-mode不匹配
//packetization-mode不匹配
return
false
;
return
false
;
}
}
...
...
This diff is collapsed.
Click to expand it.
webrtc/Sdp.h
查看文件 @
b5e6c12e
...
@@ -708,7 +708,7 @@ public:
...
@@ -708,7 +708,7 @@ public:
private
:
private
:
void
matchMedia
(
shared_ptr
<
RtcSession
>
&
ret
,
TrackType
type
,
const
vector
<
RtcMedia
>
&
medias
,
const
RtcTrackConfigure
&
configure
);
void
matchMedia
(
shared_ptr
<
RtcSession
>
&
ret
,
TrackType
type
,
const
vector
<
RtcMedia
>
&
medias
,
const
RtcTrackConfigure
&
configure
);
bool
on
MatchCodecPlan
(
const
RtcCodecPlan
&
plan
,
CodecId
codec
);
bool
on
CheckCodecProfile
(
const
RtcCodecPlan
&
plan
,
CodecId
codec
);
private
:
private
:
RtcCodecPlan
::
Ptr
_rtsp_video_plan
;
RtcCodecPlan
::
Ptr
_rtsp_video_plan
;
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论