(this time with the attached git-format patch !)
The Id3v2 tag is set to a wrong size (14 bytes too large), when a CTOC
frame is included. It makes decoders believe the first MP3 frame is inside
the ID3v2 tag, and hence mungle the first mp3 frame.
The code source uses a hardcoded "16" magic value
The Id3v2 tag is set to a wrong size, when a CTOC frame is written.
The code source uses a hardcoded "16" magic value that is incorrect. (it
should be "2")
This patch fixes this bug *without* using magic values.
See:
https://github.com/gbouthenot/mp3splitter-js/issues/2
https://github.com/openau