From 2faeda59f04be616bf2ca5edce03d7c325f6ad7e Mon Sep 17 00:00:00 2001 From: aggresss Date: Fri, 27 Dec 2024 20:02:11 +0800 Subject: [PATCH] Fix some typo --- worker/include/RTC/RTCP/XR.hpp | 2 +- worker/src/RTC/RTCP/XrDelaySinceLastRr.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/worker/include/RTC/RTCP/XR.hpp b/worker/include/RTC/RTCP/XR.hpp index efdfb3a64a..0e76bc632f 100644 --- a/worker/include/RTC/RTCP/XR.hpp +++ b/worker/include/RTC/RTCP/XR.hpp @@ -72,7 +72,7 @@ namespace RTC CommonHeader* header{ nullptr }; private: - uint8_t raw[Packet::CommonHeaderSize] = { 0 }; + uint8_t raw[CommonHeaderSize] = { 0 }; }; class ExtendedReportPacket : public Packet diff --git a/worker/src/RTC/RTCP/XrDelaySinceLastRr.cpp b/worker/src/RTC/RTCP/XrDelaySinceLastRr.cpp index beb6cc083f..935c68dcdf 100644 --- a/worker/src/RTC/RTCP/XrDelaySinceLastRr.cpp +++ b/worker/src/RTC/RTCP/XrDelaySinceLastRr.cpp @@ -92,7 +92,7 @@ namespace RTC { MS_TRACE(); - const size_t length = static_cast((SsrcInfo::BodySize * this->ssrcInfos.size() / 4)); + const size_t length = static_cast(SsrcInfo::BodySize * this->ssrcInfos.size() / 4); // Fill the common header. this->header->blockType = static_cast(this->type); @@ -121,7 +121,7 @@ namespace RTC MS_DUMP(" reserved: 0"); MS_DUMP( " length: %" PRIu16, - static_cast((SsrcInfo::BodySize * this->ssrcInfos.size() / 4))); + static_cast(SsrcInfo::BodySize * this->ssrcInfos.size() / 4)); for (auto* ssrcInfo : this->ssrcInfos) { ssrcInfo->Dump();