Sfoglia il codice sorgente

fix position bit for isEnd & reservedBit6

Vladimir Voronin 3 anni fa
parent
commit
f3b10f7c1c
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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;
 
 	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; }
 
 	void setStart(bool isSet) { _first = (_first & 0x7F) | (isSet << 7); }