$frame_name =
$iTunesBrokenFrameNameFixed;
} if (($frame_size <=
strlen($framedata)) && ($this->
IsValidID3v2FrameName($frame_name,
$id3v2_majorversion))) { $parsedFrame = array
();
$parsedFrame['frame_name'
] =
$frame_name;
$parsedFrame['frame_flags_raw'
] =
$frame_flags;
$parsedFrame['data'
] =
substr($framedata, 0,
$frame_size);
$parsedFrame['datalength'
] = getid3_lib::
CastAsInt($frame_size);
$parsedFrame['dataoffset'
] =
$framedataoffset;
$this->
ParseID3v2Frame($parsedFrame);
$thisfile_id3v2[$frame_name][] =
$parsedFrame;
$framedata =
substr($framedata,
$frame_size);
} else { // invalid frame length or FrameID
if ($frame_size <=
strlen($framedata)) { if ($this->
IsValidID3v2FrameName(substr($framedata,
$frame_size, 4
),
$id3v2_majorversion)) { // next frame is valid, just skip the current frame