Skip to content

Commit

Permalink
remove the EbmlBinary::SizeIsValid pure virtual method
Browse files Browse the repository at this point in the history
We get that information from the EbmlCallbacks.
  • Loading branch information
robUx4 committed Feb 25, 2024
1 parent c413747 commit 8d41793
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
4 changes: 0 additions & 4 deletions matroska/KaxBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,6 @@ class MATROSKA_DLL_API KaxInternalBlock : public libebml::EbmlBinary {
{}
KaxInternalBlock(const KaxInternalBlock & ElementToClone);
~KaxInternalBlock() override;
bool SizeIsValid(std::uint64_t size) const override
{
return size >= 4; /// for the moment
}
static inline bool SizeIsValid(std::uint64_t size)
{
return size >= 4; /// for the moment
Expand Down
18 changes: 9 additions & 9 deletions matroska/KaxSemantic.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "matroska/KaxDefines.h"

namespace libmatroska {
DECLARE_MKX_BINARY_LENGTH(KaxSeekID, 4)
DECLARE_MKX_BINARY(KaxSeekID)
};

DECLARE_MKX_UINTEGER(KaxSeekPosition)
Expand All @@ -31,25 +31,25 @@ DECLARE_MKX_UINTEGER(KaxSeekPosition)
DECLARE_MKX_MASTER(KaxInfo)
};

DECLARE_MKX_BINARY_LENGTH(KaxSegmentUID, 16)
DECLARE_MKX_BINARY(KaxSegmentUID)
};

DECLARE_MKX_UNISTRING(KaxSegmentFilename)
};

DECLARE_MKX_BINARY_LENGTH(KaxPrevUID, 16)
DECLARE_MKX_BINARY(KaxPrevUID)
};

DECLARE_MKX_UNISTRING(KaxPrevFilename)
};

DECLARE_MKX_BINARY_LENGTH(KaxNextUID, 16)
DECLARE_MKX_BINARY(KaxNextUID)
};

DECLARE_MKX_UNISTRING(KaxNextFilename)
};

DECLARE_MKX_BINARY_LENGTH(KaxSegmentFamily, 16)
DECLARE_MKX_BINARY(KaxSegmentFamily)
};

DECLARE_MKX_MASTER(KaxChapterTranslate)
Expand Down Expand Up @@ -386,7 +386,7 @@ DECLARE_MKX_UINTEGER_DEF(KaxVideoAspectRatio)
libebml::filepos_t RenderData(libebml::IOCallback & output, bool bForceRender, const ShouldWrite & writeFilter) override;
};

DECLARE_MKX_BINARY_LENGTH(KaxVideoColourSpace, 4)
DECLARE_MKX_BINARY(KaxVideoColourSpace)
};

DECLARE_MKX_FLOAT(KaxVideoGamma)
Expand Down Expand Up @@ -541,7 +541,7 @@ DECLARE_MKX_UINTEGER(KaxTrickTrackUID)
libebml::filepos_t RenderData(libebml::IOCallback & output, bool bForceRender, const ShouldWrite & writeFilter) override;
};

DECLARE_MKX_BINARY_LENGTH(KaxTrickTrackSegmentUID, 16)
DECLARE_MKX_BINARY(KaxTrickTrackSegmentUID)
public:
libebml::filepos_t RenderData(libebml::IOCallback & output, bool bForceRender, const ShouldWrite & writeFilter) override;
};
Expand All @@ -556,7 +556,7 @@ DECLARE_MKX_UINTEGER(KaxTrickMasterTrackUID)
libebml::filepos_t RenderData(libebml::IOCallback & output, bool bForceRender, const ShouldWrite & writeFilter) override;
};

DECLARE_MKX_BINARY_LENGTH(KaxTrickMasterTrackSegmentUID, 16)
DECLARE_MKX_BINARY(KaxTrickMasterTrackSegmentUID)
public:
libebml::filepos_t RenderData(libebml::IOCallback & output, bool bForceRender, const ShouldWrite & writeFilter) override;
};
Expand Down Expand Up @@ -743,7 +743,7 @@ DECLARE_MKX_UINTEGER_DEF(KaxChapterFlagHidden)
DECLARE_MKX_UINTEGER_DEF(KaxChapterFlagEnabled)
};

DECLARE_MKX_BINARY_LENGTH(KaxChapterSegmentUID, 16)
DECLARE_MKX_BINARY(KaxChapterSegmentUID)
};

DECLARE_MKX_UINTEGER(KaxChapterSkipType)
Expand Down

0 comments on commit 8d41793

Please sign in to comment.