Skip to content

Commit

Permalink
Merge pull request #1073 from edmonds/h265nalu-tid-mask-fix
Browse files Browse the repository at this point in the history
H265NalUnitFragment: Mask `nuhTempIdPlus1` correctly
  • Loading branch information
paullouisageneau committed Jan 7, 2024
1 parent 198a2ec commit f840328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/h265nalunit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ H265NalUnitFragment::fragmentsFrom(shared_ptr<H265NalUnit> nalu, uint16_t maximu
maximumFragmentSize -= (H265_NAL_HEADER_SIZE + H265_FU_HEADER_SIZE);
auto f = nalu->forbiddenBit();
uint8_t nuhLayerId = nalu->nuhLayerId() & 0x3F; // 6 bits
uint8_t nuhTempIdPlus1 = nalu->nuhTempIdPlus1() & 0xE; // 3 bits
uint8_t nuhTempIdPlus1 = nalu->nuhTempIdPlus1() & 0x7; // 3 bits
uint8_t naluType = nalu->unitType() & 0x3F; // 6 bits
auto payload = nalu->payload();
vector<shared_ptr<H265NalUnitFragment>> result{};
Expand Down

0 comments on commit f840328

Please sign in to comment.