From c18656020257b33475d7cc6809e959871a0db9f5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 10 Jan 2005 22:30:10 +0000 Subject: [PATCH] Do not use EbmlElement::ElementSize() but ::HeadSize() and ::GetSize(). --- src/extract/mkvextract.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/extract/mkvextract.h b/src/extract/mkvextract.h index 3185696d7..f1ddca7ce 100644 --- a/src/extract/mkvextract.h +++ b/src/extract/mkvextract.h @@ -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, ...);