Skip to content

Commit

Permalink
KaxBlock: fix wrong conversion to FindChild in setter method
Browse files Browse the repository at this point in the history
  • Loading branch information
mbunkus committed Mar 2, 2024
1 parent ac630fd commit b05a0c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/KaxBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,7 @@ void KaxBlockGroup::SetBlockDuration(std::uint64_t TimeLength)
{
assert(ParentTrack);
const std::int64_t scale = ParentTrack->GlobalTimestampScale();
const auto myDuration = FindChild<KaxBlockDuration>(*this);
myDuration->SetValue(TimeLength / static_cast<std::uint64_t>(scale));
GetChild<KaxBlockDuration>(*this).SetValue(TimeLength / static_cast<std::uint64_t>(scale));
}

bool KaxBlockGroup::GetBlockDuration(std::uint64_t &TheTimestamp) const
Expand Down

0 comments on commit b05a0c7

Please sign in to comment.