Bugs: Browse | Submit New | Admin

[#27392] from_io miss calculates @io_position

Date:
2009-11-03 19:01
Priority:
3
Submitted By:
Gregg Kellogg (gkellogg)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
from_io miss calculates @io_position

Detailed description
@io_position is consistently 7 bytes short of the actual start of audio data. This is because io_position is calculated
from tag_length and the original position after the "ID3" at the beginning of the file. It should also take
into consideration the 3 byte version and flags as well as the 4 byte tag_length.

I changed the @io_position calculation as follows:

@io_position =  @io.pos + @tag_length # GK - position relative to start of data, must skip 10-bytes of header

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item