Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d295296a authored by James Dong's avatar James Dong
Browse files

Track id really starts with 1, not 0

Change-Id: I55dcfdc2dc2a64285dfa93024f7b885210cc827e
parent 73162196
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2491,7 +2491,7 @@ void MPEG4Writer::Track::writeTkhdBox(time_t now) {
    mOwner->writeInt32(0x07);          // version=0, flags=7
    mOwner->writeInt32(now);           // creation time
    mOwner->writeInt32(now);           // modification time
    mOwner->writeInt32(mTrackId);
    mOwner->writeInt32(mTrackId + 1);  // track id starts with 1
    mOwner->writeInt32(0);             // reserved
    int64_t trakDurationUs = getDurationUs();
    int32_t mvhdTimeScale = mOwner->getTimeScale();