提交 97882cfa authored 作者: José Luis Millán's avatar José Luis Millán

worker: Apply format

上级 d751c208
......@@ -280,7 +280,9 @@ namespace RTC
{
MS_ASSERT(profile != RTC::RtpEncodingParameters::Profile::NONE, "invalid profile");
MS_ASSERT(this->mapProfileRtpStream.find(profile) == this->mapProfileRtpStream.end(), "profile already exists");
MS_ASSERT(
this->mapProfileRtpStream.find(profile) == this->mapProfileRtpStream.end(),
"profile already exists");
MS_ASSERT(
!(profile == RTC::RtpEncodingParameters::Profile::DEFAULT && !this->mapProfileRtpStream.empty()),
......@@ -300,10 +302,13 @@ namespace RTC
{
MS_ASSERT(profile != RTC::RtpEncodingParameters::Profile::NONE, "invalid profile");
MS_ASSERT(this->mapProfileRtpStream.find(profile) != this->mapProfileRtpStream.end(), "profile not found");
MS_ASSERT(
this->mapProfileRtpStream.find(profile) != this->mapProfileRtpStream.end(),
"profile not found");
MS_ASSERT(
!(profile == RTC::RtpEncodingParameters::Profile::DEFAULT && this->mapProfileRtpStream.size() != 1),
!(profile == RTC::RtpEncodingParameters::Profile::DEFAULT &&
this->mapProfileRtpStream.size() != 1),
"default profile cannot coexist with others");
// Remove the profile.
......
......@@ -67,7 +67,8 @@ SCENARIO("parse VP8 payload descriptor", "[codecs][vp8]")
SECTION("encode payload descriptor")
{
payloadDescriptor->Encode(buffer, payloadDescriptor->pictureId, payloadDescriptor->tl0PictureIndex);
payloadDescriptor->Encode(
buffer, payloadDescriptor->pictureId, payloadDescriptor->tl0PictureIndex);
SECTION("compare encoded payloadDescriptor with original buffer")
{
......@@ -95,7 +96,7 @@ SCENARIO("parse VP8 payload descriptor", "[codecs][vp8]")
* 11 = Temporal layer Index (TID): 3
* 1 = 1 Lay Sync Bit (Y): True
* ...0 0100 = Temporal Key Frame Index (KEYIDX): 4
*/
*/
// clang-format off
uint8_t originalBuffer[] =
......@@ -141,7 +142,8 @@ SCENARIO("parse VP8 payload descriptor", "[codecs][vp8]")
SECTION("encode payload descriptor")
{
payloadDescriptor->Encode(buffer, payloadDescriptor->pictureId, payloadDescriptor->tl0PictureIndex);
payloadDescriptor->Encode(
buffer, payloadDescriptor->pictureId, payloadDescriptor->tl0PictureIndex);
SECTION("compare encoded payloadDescriptor with original buffer")
{
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论