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); } };