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

Cosmetic changes

上级 282f696b
......@@ -23,7 +23,7 @@
"!win32"
],
"engines": {
"node": ">=8.0.0"
"node": ">=8.6.0"
},
"scripts": {
"lint": "npm run lint:node && npm run lint:worker",
......@@ -54,7 +54,7 @@
"gulp": "^4.0.1",
"gulp-clang-format": "^1.0.27",
"jest": "^24.7.1",
"jest-tobetype": "^1.2.2",
"jest-tobetype": "^1.2.3",
"opn-cli": "^4.1.0"
},
"optionalDependencies": {
......
......@@ -18,7 +18,8 @@ namespace RTC
~PayloadDescriptor() = default;
void Dump() const;
bool isKeyFrame = { false };
// Parsed values.
bool isKeyFrame{ false };
};
public:
......
......@@ -46,29 +46,29 @@ namespace RTC
void Encode(uint8_t* data, uint16_t pictureId, uint8_t tl0PictureIndex) const;
void Restore(uint8_t* data) const;
// mandatory fields.
// Mandatory fields.
uint8_t extended : 1;
uint8_t nonReference : 1;
uint8_t start : 1;
uint8_t partitionIndex : 4;
// optional field flags.
// Optional field flags.
uint8_t i : 1; // PictureID present.
uint8_t l : 1; // TL0PICIDX present.
uint8_t t : 1; // TID present.
uint8_t k : 1; // KEYIDX present.
// optional fields.
// Optional fields.
uint16_t pictureId;
uint8_t tl0PictureIndex;
uint8_t tlIndex : 2;
uint8_t y : 1;
uint8_t keyIndex : 5;
bool isKeyFrame = { false };
bool hasPictureId = { false };
bool hasOneBytePictureId = { false };
bool hasTwoBytesPictureId = { false };
bool hasTl0PictureIndex = { false };
bool hasTlIndex = { false };
// Parsed values.
bool isKeyFrame{ false };
bool hasPictureId{ false };
bool hasOneBytePictureId{ false };
bool hasTwoBytesPictureId{ false };
bool hasTl0PictureIndex{ false };
bool hasTlIndex{ false };
};
public:
......
......@@ -125,7 +125,7 @@ namespace RTC
data++;
if (pictureId > 127)
MS_WARN_TAG(rtp, "casting pictureId value to one byte");
MS_DEBUG_TAG(rtp, "casting pictureId value to one byte");
}
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论