question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Picture format decoding broken in ID3v2.2 header

See original GitHub issue

05 I Believe You.zip

Bug description

For the attached file, I call .parseBlob(). In the resulting metadata.common.picture[0].format, I get some Chinese character. I assume this is just corrupt data.

Expected behavior

There is album art in this file that I can see with VLC. It would be great if this library could provide it with a type. If not, I think it should throw an error or not provide the picture.

Let me know if you need more samples… I have a handful of these with the same issue. Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bradisbellcommented, Sep 11, 2020

Awesome! Thank you!!

1reaction
Borewitcommented, Sep 11, 2020

Fixed in v7.1.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

id3v2.3.0 - ID3.org
This document is an informal standard and replaces the id3v2.2.0 ... In the frame header the size descriptor is followed by two flags...
Read more >
New MP3 decoder misidentifies MP3 header within ID3v2 tag
I've done a bit of further investigation, and it seems that for the song from Comment 1, the ID3v2 tag breaks parsing -...
Read more >
25. Practical: An ID3 Parser - gigamonkeys
Structure of an ID3v2 Tag​​ A tag starts with a header containing information about the tag as a whole. The first three bytes...
Read more >
ID3v2.3 Programming Guidelines - id3lib
The Frame Header has been expanded. The Frame ID and Frame Size fields are now four bytes long. Two bytes of Flags have...
Read more >
Mp3 ID3 tags, confusing APIC frame structure - Stack Overflow
In case anyone finds this from google, the actual answer is that you have to watch out for the two flag bytes at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found