From c9a20eda16b6ffdebfa036cb49f16d55991191dd Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Tue, 6 Apr 2021 23:22:22 +0800 Subject: [PATCH] =?UTF-8?q?profile=E5=8C=B9=E9=85=8D=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=BC=98=E5=85=88=E9=80=89=E6=8B=A9=E7=9B=B8?= =?UTF-8?q?=E5=90=8C=E7=BC=96=E7=A0=81=E6=A0=BC=E5=BC=8F=E7=9A=84=E6=96=B9?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/Sdp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webrtc/Sdp.cpp b/webrtc/Sdp.cpp index 81355d0b..8a5f6f02 100644 --- a/webrtc/Sdp.cpp +++ b/webrtc/Sdp.cpp @@ -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;