-
Notifications
You must be signed in to change notification settings - Fork 57
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
feat(sdk): Add support for MP3 without ID3 header #588
Conversation
Looks good. If you bring the branch up to date with main I will merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update
Can you please sign our contributor agreement: https://github.com/contentauth/c2pa-rs/pull/588/checks?check_run_id=30903968016 |
@mauricefisher64 I've signed it and closed/reopened the pull request to trigger the check again. |
@shc261392 would you please enable maintainers' contributions? This would allow us to update to base branch and merge when we have a moment. Otherwise, we'll keep asking you to update and hope that we notice at the right time. 😐 |
Sadly seems the option is still not available for organization forks. Seems I need to manually keep it updated. |
4da266b
to
df97891
Compare
1fb0f58
to
67ff03a
Compare
…D3 header Signed-off-by: James Chien <james@numbersprotocol.io>
@mauricefisher64 Would you please check again to see if it could be merged? |
@mauricefisher64 @scouten-adobe I've created a pull request using personal repo fork instead so the maintainer editing option is enabled. It should make things easier: #652 |
Close to switch to personal fork for maintaining editing option. #652 |
Changes in this pull request
MP3 files does not necessarily have ID3 header and the current version will always raise "unsupported type" error when an file is MP3 format but has no ID3 header. Getting the ID3 header in MP3 file handler only serves the purpose of skipping the size of the header, hence when the MP3 file does not have an ID3 header, we could check for the MP3 header sync word (11 bits of 1) to make sure it is a valid MP3 file instead and skip 0 bytes as there is no ID3 header to skip.
This change would enable c2pa-rs to work with MP3 files that lack ID3 headers.
Checklist
TO DO
items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.