]> granicus.if.org Git - libmatroska/commitdiff
add macros to access the EbmlId internal variables
authorSteve Lhomme <slhomme@matroska.org>
Mon, 15 Mar 2010 16:08:31 +0000 (16:08 +0000)
committerSteve Lhomme <slhomme@matroska.org>
Mon, 15 Mar 2010 16:08:31 +0000 (16:08 +0000)
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@15 a6f86f6d-0131-4f8e-9e7b-e335508773d5

src/KaxSeekHead.cpp

index ec9aaf27b58cee15653ba658c96d4340050257bf..3f9aac6ca097ff30f10807215a8c13ed567f1a8d 100644 (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