-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
isomp4: Use the track ID from the container.
Fixes #324.
- Loading branch information
Showing
1 changed file
with
53 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This change is not complete.
Packet object has just id field. Now when this id means a value from container, not the index. It's not easy to find the corresponding packet's track in the external application.
for example this code has issues:
let video_track_id = format.first_track(TrackType::Video); // returns 1 starting from 1
let track = format.tracks().get(packet.track_id()) // WRONG, returns Audio track which has track_id = 2
I think it will be good to have both track_id and track_num in core objects.
@pdeljanov