void MoofParser::ParseStbl(Box& aBox) { for (Box box = aBox.FirstChild(); box.IsAvailable(); box = box.Next()) { if (box.IsType("stsd")) { ParseStsd(box); } else if (box.IsType("sgpd")) { Sgpd sgpd(box); if (sgpd.IsValid() && sgpd.mGroupingType == "seig") { mTrackSampleEncryptionInfoEntries.Clear(); if (!mTrackSampleEncryptionInfoEntries.AppendElements(sgpd.mEntries, mozilla::fallible)) { LOG(Moof, "OOM"); return; } } } else if (box.IsType("sbgp")) { Sbgp sbgp(box); if (sbgp.IsValid() && sbgp.mGroupingType == "seig") { mTrackSampleToGroupEntries.Clear(); if (!mTrackSampleToGroupEntries.AppendElements(sbgp.mEntries, mozilla::fallible)) { LOG(Moof, "OOM"); return; } } } } }
void MoofParser::ParseStbl(Box& aBox) { for (Box box = aBox.FirstChild(); box.IsAvailable(); box = box.Next()) { if (box.IsType("stsd")) { ParseStsd(box); } } }