in reply to Re^2: ID3v2 TAG Footer Reading goes wrong
in thread ID3v2 TAG Footer Reading goes wrong
The basic problem still seems to be that you're not doing anything about the frame data. You might try something like this:
$position = 10; $id3_end = 10 + $id3_size; while ($position < $id3_end) { seek FH, $position, SEEK_SET; # read $frame_id, $frame_size, and $frame_flags $position += 10 + $frame_size; last if $frame_id =~ /\W/ || $position > $id3_end; # do something with $frame_id }
The "last if" line is a sanity check, because some ID3 writers leave a mess behind them.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: ID3v2 TAG Footer Reading goes wrong
by thanos1983 (Parson) on Jan 10, 2014 at 23:51 UTC | |
by roboticus (Chancellor) on Jan 11, 2014 at 00:13 UTC | |
by no_slogan (Deacon) on Jan 11, 2014 at 01:11 UTC |
In Section
Seekers of Perl Wisdom