cast to EbmlId instead of accessing Generic() GlobalId directly

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@8 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
Steve Lhomme 2010-03-15 15:57:04 +00:00
parent 44d2a6d2ed
commit 0bb4f6645a

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=aElt.Generic().GlobalId.Length; i>0; i--) {
ID[4-i] = (aElt.Generic().GlobalId.Value >> 8*(i-1)) & 0xFF;
for (int i=EbmlId(aElt).Length; i>0; i--) {
ID[4-i] = (EbmlId(aElt).Value >> 8*(i-1)) & 0xFF;
}
aNewID.CopyBuffer(ID, aElt.Generic().GlobalId.Length);
aNewID.CopyBuffer(ID, EbmlId(aElt).Length);
}
KaxSeek * KaxSeekHead::FindFirstOf(const EbmlCallbacks & Callbacks) const