 |
Forums |
Admin Start New Thread
| Message: 82847 |
 |
BY: Timothy Byrd (timothy_byrd) DATE: 2009-06-19 07:34 SUBJECT: length of id3v2 tags From http://www.id3.org/d3v2.3.0:
"The ID3v2 tag size is the size of the complete tag after unsychronisation, including padding, excluding the header but not excluding the extended header (total tag size - 10). Only 28 bits (representing up to 256MB) are used in the size description to avoid the introducuction of 'false syncsignals'."
Given this, the first frame should start at position tag_size + 10.
So in id3v2.rb, I think the the line reading
@io_position = original_pos + @tag_length
should be changed to
@io_position = original_pos + @tag_length + 7
(only need to add seven because we have already used up three characters by reading the "ID3" that starts the tags.)
-- Timothy
| |
Thread View
| Thread |
Author |
Date |
 |
length of id3v2 tags | Timothy Byrd | 2009-06-19 07:34 | |
Post a followup to this message
|
 |