From 263ef63c031259798ba8373f7571967567a3e613 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 24 Feb 2024 11:50:49 +0100 Subject: [PATCH] fix compilation after making HeadSize() private --- src/KaxSegment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/KaxSegment.cpp b/src/KaxSegment.cpp index f0b1ca89..56f7f12b 100644 --- a/src/KaxSegment.cpp +++ b/src/KaxSegment.cpp @@ -39,7 +39,7 @@ KaxSegment::KaxSegment(const KaxSegment & ElementToClone) std::uint64_t KaxSegment::GetRelativePosition(std::uint64_t aGlobalPosition) const { - return aGlobalPosition - GetElementPosition() - HeadSize(); + return aGlobalPosition - GetDataStart(); } std::uint64_t KaxSegment::GetRelativePosition(const EbmlElement & Elt) const @@ -49,7 +49,7 @@ std::uint64_t KaxSegment::GetRelativePosition(const EbmlElement & Elt) const std::uint64_t KaxSegment::GetGlobalPosition(std::uint64_t aRelativePosition) const { - return aRelativePosition + GetElementPosition() + HeadSize(); + return aRelativePosition + GetDataStart(); } } // namespace libmatroska