Do not use EbmlElement::ElementSize() but ::HeadSize() and ::GetSize().

This commit is contained in:
Moritz Bunkus 2005-01-10 22:30:10 +00:00
parent 9ccac1e5b7
commit c186560202

View File

@ -104,9 +104,10 @@ extern char typenames[FILE_TYPE_MAX + 1][20];
extern bool no_variable_data;
#define fits_parent(l, p) (l->GetElementPosition() < \
(p->GetElementPosition() + p->ElementSize()))
(p->GetElementPosition() + p->HeadSize() + \
p->GetSize()))
#define in_parent(p) (in->getFilePointer() < \
(p->GetElementPosition() + p->ElementSize()))
(p->GetElementPosition() + p->HeadSize() + p->GetSize()))
// Helper functions in mkvextract.cpp
void show_element(EbmlElement *l, int level, const char *fmt, ...);