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

MP4: Correctness fixes #241

Merged
merged 6 commits into from
Jul 25, 2023
Merged

MP4: Correctness fixes #241

merged 6 commits into from
Jul 25, 2023

Conversation

Serial-ATA
Copy link
Owner

@Serial-ATA Serial-ATA commented Jul 24, 2023

Added

  • Ilst::insert_picture will now combine pictures into a single covr atom
  • Atom::merge for combining the data of two atoms
  • Atom::into_data to consume an Atom and return its data

Changed

  • Ilst::remove will now return all removed atoms
  • Ilst::pictures will now only check for a single covr atom
  • Ilst::insert will now merge with existing atoms
    • Now, when inserting an atom that already exists in a tag, the data is taken from the provided atom and merged with the existing value in the tag. This should ensure that the value that already exists in the tag will remain the dominant one.

Previously, `Ilst::insert_picture` would insert a new `covr` atom, and `Ilst::pictures` would check for multiple `covr` atoms. Now, when inserting pictures they will all be merged into a single atom.

Additionally, `Ilst::insert` will check for `covr` atom inserts, and perform `Ilst::insert_picture` correctly.
Now, when inserting an atom that already exists in a tag, the data is taken from the provided atom and merged with the existing value in the tag. This should ensure that the value that already exists in the tag will remain the dominant one.
@Serial-ATA Serial-ATA merged commit e622a67 into main Jul 25, 2023
12 checks passed
@Serial-ATA Serial-ATA deleted the mp4-fixes branch July 25, 2023 21:11
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

Successfully merging this pull request may close these issues.

None yet

1 participant