浏览代码

fix position bit for isEnd & reservedBit6

Vladimir Voronin 3 年之前
父节点
当前提交
b0aa08cf07
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/rtc/nalunit.hpp

+ 2 - 2
include/rtc/nalunit.hpp

@@ -47,8 +47,8 @@ struct RTC_CPP_EXPORT NalUnitFragmentHeader {
 	uint8_t _first = 0;
 	uint8_t _first = 0;
 
 
 	bool isStart() { return _first >> 7; }
 	bool isStart() { return _first >> 7; }
-	bool reservedBit6() { return (_first >> 6) & 0x01; }
-	bool isEnd() { return (_first >> 5) & 0x01; }
+	bool reservedBit6() { return (_first >> 5) & 0x01; }
+	bool isEnd() { return (_first >> 6) & 0x01; }
 	uint8_t unitType() { return _first & 0x1F; }
 	uint8_t unitType() { return _first & 0x1F; }
 
 
 	void setStart(bool isSet) { _first = (_first & 0x7F) | (isSet << 7); }
 	void setStart(bool isSet) { _first = (_first & 0x7F) | (isSet << 7); }