mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
f742b585e8
commit
1bbb2a972c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user