Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

nextTrackId not set when file has invalid nextTrackid #44

Open
L2501 opened this issue Jul 10, 2023 · 0 comments
Open

nextTrackId not set when file has invalid nextTrackid #44

L2501 opened this issue Jul 10, 2023 · 0 comments

Comments

@L2501
Copy link

L2501 commented Jul 10, 2023

When a file has nextTrackid that is in use the it is not changed after adding a new track

mp4v2/src/mp4file.cpp

Lines 2977 to 2988 in 86b5aaf

// we need to search for a track id
for (trackId = 1; trackId <= 0xFFFF; trackId++) {
try {
(void)FindTrackIndex(trackId);
// KEEP LOOKING, this trackId is in use
}
catch (Exception* x) {
// OK, this trackId is not in use, proceed
delete x;
return trackId;
}
}

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

No branches or pull requests

1 participant