mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-12-03 04:30:15 +08:00
profile匹配失败时,优先选择相同编码格式的方案
This commit is contained in:
parent
204ef6e204
commit
c9a20eda16
@ -1357,11 +1357,11 @@ RETRY:
|
||||
}
|
||||
const RtcCodecPlan *offer_plan_ptr = nullptr;
|
||||
for (auto &plan : offer_media.plan) {
|
||||
if (getCodecId(plan.codec) != codec) {
|
||||
continue;
|
||||
}
|
||||
//如果匹配失败了,那么随便选择一个plan
|
||||
if (!failed) {
|
||||
//如果匹配失败了,那么随便选择一个plan
|
||||
if (getCodecId(plan.codec) != codec) {
|
||||
continue;
|
||||
}
|
||||
//命中偏好的编码格式
|
||||
if (!onMatchCodecPlan(plan, codec)) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user