Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

correct nextTrackId after deleting chapter track #41

Closed
wants to merge 1 commit into from

Conversation

L2501
Copy link

@L2501 L2501 commented Jul 7, 2023

correct nextTrackId after deleting chapter track
fix for #26

@enzo1982
Copy link
Owner

enzo1982 commented Jul 7, 2023

I have to reject this PR as it violates the spec.

From ISO/IEC 14496-12 ISO BMFF, 5th edition, section 8.2.2.3:

The value of next_track_ID shall be larger than the largest track‐ID in use.

And section 8.3.2.3:

Track IDs are never re‐used

So after deleting a chapter track, the previous track ID should not be re-used and any newly added track should be assigned a track ID larger than any existing track in the file.

This PR violates these two conditions.

Let's discuss other options in issue #26.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants