-
Notifications
You must be signed in to change notification settings - Fork 47
-
Notifications
You must be signed in to change notification settings - Fork 47
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
exceeds data length error on some mp3 files with version4 #88
Comments
Problem is in ID3FramesParser.parse(mp3:id3Tag:) func. So, this code seems to solve the issue but I don't think this is the correct way. |
Hi @andriypohorilko , this error could happen if:
I will try to debug it in the following weekends (after finishing some improvement I'm doing to the read API). If you discover something new just let me know. Fabrizio. |
Hi @andriypohorilko, I debug your mp3 and put in place some test. The problem is related to how it is stored the attached picture frame size. Seems like your mp3 has this data saved as a normal integer instead of a Synchsafe one. Anyway I will try to add a fallback to support your case (because seems like other reader are not following the standard strictly as I do). I will keep you updated. |
Hi @andriypohorilko, I made further investigation and I was wrong. The size reported in a frame after the APIC (images) is wrong. I would close these as the only thing I could do is doing a fallback like the one you suggested and keep the frames parsed until that moment. |
Fix released in version 4.2.1 |
I get an error -[Foundation.__NSSwiftData subdataWithRange:]: range {115888, 24847503} exceeds data length 11634651
on trying to read mp3 songs with version4.
I've uploaded the mp3 file below.
I use ID3TagEditor 4.1.3
Steps to reproduce the behavior:
The Black Eyed Peas - I Gotta Feeling.mp3.zip
The text was updated successfully, but these errors were encountered: