by default the any size is OK for Binary elements

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@81 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
Steve Lhomme 2010-04-07 09:41:09 +00:00
parent 07d6f46f78
commit 350e192617
3 changed files with 2 additions and 2 deletions

View File

@ -62,6 +62,8 @@ class EBML_DLL_API EbmlBinary : public EbmlElement {
EbmlBinary(const EbmlBinary & ElementToClone);
virtual ~EbmlBinary(void);
virtual bool ValidateSize() const {return true;} // we don't mind about what's inside
filepos_t RenderData(IOCallback & output, bool bForceRender, bool bKeepIntact = false);
filepos_t ReadData(IOCallback & input, ScopeMode ReadFully = SCOPE_ALL_DATA);
filepos_t UpdateSize(bool bKeepIntact = false, bool bForceRender = false);

View File

@ -46,7 +46,6 @@ class EBML_DLL_API EbmlDummy : public EbmlBinary {
EbmlDummy(const EbmlId & aId) :EbmlBinary(), DummyId(aId) {}
EbmlDummy(const EbmlDummy & ElementToClone):EbmlBinary(ElementToClone), DummyId(ElementToClone.DummyId) {}
bool ValidateSize() const {return true;}
bool IsDummy() const {return true;}
bool IsDefaultValue() const {return true;}

View File

@ -44,7 +44,6 @@ START_LIBEBML_NAMESPACE
DECLARE_EBML_BINARY(EbmlVoid)
public:
EbmlVoid(const EbmlVoid & ElementToClone) :EbmlBinary(ElementToClone){}
bool ValidateSize() const {return true;} // any void element is accepted
/*!
\brief Set the size of the data (not the complete size of the element)