Skip to content

Commit

Permalink
fix compilation after making HeadSize() private
Browse files Browse the repository at this point in the history
  • Loading branch information
mbunkus committed Feb 24, 2024
1 parent e096e17 commit 263ef63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/KaxSegment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 263ef63

Please sign in to comment.