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:
parent
2c2dc8845d
commit
26cd86379b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user