From 5236eea324888d07d69c49cf339aa54c527d5a2d Mon Sep 17 00:00:00 2001 From: melpon Date: Thu, 16 Nov 2023 06:48:23 +0900 Subject: [PATCH] Fix the target location of the FU header pointer --- include/rtc/h265nalunit.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/rtc/h265nalunit.hpp b/include/rtc/h265nalunit.hpp index 5fec563fa..cf8412780 100644 --- a/include/rtc/h265nalunit.hpp +++ b/include/rtc/h265nalunit.hpp @@ -163,13 +163,11 @@ struct RTC_CPP_EXPORT H265NalUnitFragment : H265NalUnit { } H265NalUnitFragmentHeader *fragmentHeader() { - return reinterpret_cast(fragmentIndicator() + - H265_NAL_HEADER_SIZE); + return reinterpret_cast(data() + H265_NAL_HEADER_SIZE); } const H265NalUnitFragmentHeader *fragmentHeader() const { - return reinterpret_cast(fragmentIndicator() + - H265_NAL_HEADER_SIZE); + return reinterpret_cast(data() + H265_NAL_HEADER_SIZE); } };