-
Notifications
You must be signed in to change notification settings - Fork 6k
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
can not decode APICFrame picutreData (mimetype=image/png, encoding=UTF-16, description=Cover) #9087
Comments
I made a mistake, so I'll fix it. |
fix UTF-8 to UTF-16 (I didn't know how to fix the title...). |
I added test case to my fork repository.
|
Thanks for reporting this. There's a small bug detecting string termination if (a) UTF-16 is used, and (b) the string starts at an non-even offset in the ID3 data. We'll push a fix. |
The current detection logic checks that the two byte terminator starts at an even position in the ID3 data, where-as it should check that it starts at an even position relative to the start of the string. #minor-release #exofixit Issue: #9087 PiperOrigin-RevId: 395274934
The current detection logic checks that the two byte terminator starts at an even position in the ID3 data, where-as it should check that it starts at an even position relative to the start of the string. Issue: #9087 PiperOrigin-RevId: 395274934
Problem
I extracted the APICFrame from an MP3 file and tried to decode it with BitmapFactory#decodeByteArray.
but it returns null.
MP3 file information
MP3 files are updated by mutagen (version 1.45.1 python library),
For AICFrames, the encoding is UTF-16, MIMEType is image/png, and description is "Cover".
APICFrame#toString()
It is dingy.
Environment
extras
The text was updated successfully, but these errors were encountered: