Bug 1395853 - Allow pt97 to be accepted as H264 in sdputils. r=drno

MozReview-Commit-ID: Cck57WEmjxz

--HG--
extra : rebase_source : 3fe03ed6c6b49ec8264aacaaa4c07916363ee522
This commit is contained in:
Andreas Pehrson 2017-09-13 11:42:45 +02:00
Родитель 1a839a7c53
Коммит 845b05ec85
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -172,7 +172,8 @@ verifySdp: function(desc, expectedType, offerConstraintsList, offerOptions,
} else {
ok(desc.sdp.includes("m=video"), "video m-line is present in SDP");
if (testOptions.h264) {
ok(desc.sdp.includes("a=rtpmap:126 H264/90000"), "H.264 codec is present in SDP");
ok(desc.sdp.includes("a=rtpmap:126 H264/90000") ||
desc.sdp.includes("a=rtpmap:97 H264/90000"), "H.264 codec is present in SDP");
} else {
ok(desc.sdp.includes("a=rtpmap:120 VP8/90000") ||
desc.sdp.includes("a=rtpmap:121 VP9/90000"), "VP8 or VP9 codec is present in SDP");