Bug 1183196: [MSE] P2. Do not ignore tracks other than the first one. r=kentuckyfriedtakahe

When used in the MP4ContainerParser, the MoofParser set the trackID as 0 ; indicating that all tracks are to be parsed. However it set later the trackID to the first one found, causing to ignore all following tracks.
This commit is contained in:
Jean-Yves Avenard 2015-07-29 23:43:49 +10:00
parent f742b585e8
commit 1bbb2a972c

View File

@ -250,7 +250,11 @@ MoofParser::ParseMvex(Box& aBox)
if (box.IsType("trex")) {
Trex trex = Trex(box);
if (!mTrex.mTrackId || trex.mTrackId == mTrex.mTrackId) {
auto trackId = mTrex.mTrackId;
mTrex = trex;
// Keep the original trackId, as should it be 0 we want to continue
// parsing all tracks.
mTrex.mTrackId = trackId;
}
}
}