Browse Source

Add NalUnit() constructor

Filip Klembara 4 years ago
parent
commit
5b66ab2d08
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/rtc/nalunit.hpp

+ 2 - 0
include/rtc/nalunit.hpp

@@ -67,6 +67,8 @@ struct RTC_CPP_EXPORT NalUnit: rtc::binary {
 
 
     NalUnit(rtc::binary &&data) : rtc::binary(std::move(data)) { }
     NalUnit(rtc::binary &&data) : rtc::binary(std::move(data)) { }
 
 
+    NalUnit(): rtc::binary(1) { }
+
     bool forbiddenBit() { return header()->forbiddenBit(); }
     bool forbiddenBit() { return header()->forbiddenBit(); }
     uint8_t nri() { return header()->nri(); }
     uint8_t nri() { return header()->nri(); }
     uint8_t unitType() { return header()->unitType(); }
     uint8_t unitType() { return header()->unitType(); }