add macros to access the EbmlId internal variables

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@15 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
Steve Lhomme 2010-03-15 16:08:31 +00:00
parent 2c2dc8845d
commit 26cd86379b

View File

@ -90,10 +90,10 @@ void KaxSeekHead::IndexThis(const EbmlElement & aElt, const KaxSegment & ParentS
KaxSeekID & aNewID = GetChild<KaxSeekID>(aNewPoint);
binary ID[4];
for (int i=EbmlId(aElt).Length; i>0; i--) {
ID[4-i] = (EbmlId(aElt).Value >> 8*(i-1)) & 0xFF;
for (int i=EBML_ID_LENGTH(EbmlId(aElt)); i>0; i--) {
ID[4-i] = (EBML_ID_VALUE(EbmlId(aElt)) >> 8*(i-1)) & 0xFF;
}
aNewID.CopyBuffer(ID, EbmlId(aElt).Length);
aNewID.CopyBuffer(ID, EBML_ID_LENGTH(EbmlId(aElt)));
}
KaxSeek * KaxSeekHead::FindFirstOf(const EbmlCallbacks & Callbacks) const