提交 2ffeba66 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

ortc.js: check profile-id when matching VP9 codec

上级 123ed902
......@@ -705,6 +705,21 @@ function matchCodecs(aCodec, bCodec, { strict = false, modify = false } = {})
break;
}
case 'video/vp9':
{
// If strict matching check profile-id.
if (strict)
{
const aProfileId = (aCodec.parameters || {})['profile-id'] || 0;
const bProfileId = (bCodec.parameters || {})['profile-id'] || 0;
if (aProfileId !== bProfileId)
return false;
}
break;
}
}
return true;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论