From f840328b5fdd4eddcd890417890a6bbce2a2764b Mon Sep 17 00:00:00 2001 From: Paul-Louis Ageneau Date: Thu, 21 Dec 2023 11:04:54 +0100 Subject: [PATCH] Merge pull request #1073 from edmonds/h265nalu-tid-mask-fix H265NalUnitFragment: Mask `nuhTempIdPlus1` correctly --- src/h265nalunit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/h265nalunit.cpp b/src/h265nalunit.cpp index b196afc72..e81c48d29 100644 --- a/src/h265nalunit.cpp +++ b/src/h265nalunit.cpp @@ -38,7 +38,7 @@ H265NalUnitFragment::fragmentsFrom(shared_ptr 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> result{};