Skip to content

Commit

Permalink
pass the size we are checking for validity
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Jan 14, 2024
1 parent 7b3f78e commit 944e9f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 4 additions & 1 deletion matroska/KaxBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ class MATROSKA_DLL_API KaxInternalBlock : public libebml::EbmlBinary {
{}
KaxInternalBlock(const KaxInternalBlock & ElementToClone);
~KaxInternalBlock() override;
bool ValidateSize() const override;
bool SizeIsValid(std::uint64_t size) const override
{
return size >= 4; /// for the moment
}

std::uint16_t TrackNum() const {return TrackNumber;}
/*!
Expand Down
5 changes: 0 additions & 5 deletions src/KaxBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ SimpleDataBuffer::SimpleDataBuffer(const SimpleDataBuffer & ToClone)
bValidValue = ToClone.bValidValue;
}

bool KaxInternalBlock::ValidateSize() const
{
return (GetSize() >= 4); /// for the moment
}

KaxInternalBlock::~KaxInternalBlock()
{
ReleaseFrames();
Expand Down

0 comments on commit 944e9f7

Please sign in to comment.