Page 1 of 1

Undefined variable $frame_indexpoints (1.9.7)

Posted: Tue Sep 17, 2013 10:26 pm
by holyfield
In file module.tag.id3v2.php at line 1888 is an undefined variable $frame_indexpoints:

Code: Select all

for ($i = 0; $i < $frame_indexpoints; $i++) {
Probably it should be $parsedFrame['indexpoints'] defined few lines above?

Code: Select all

$frame_offset = 0;
o$parsedFrame['datastart'] = getid3_lib::BigEndian2Int(substr($parsedFrame['data'], $frame_offset, 4));
o$frame_offset += 4;
o$parsedFrame['indexeddatalength'] = getid3_lib::BigEndian2Int(substr($parsedFrame['data'], $frame_offset, 4));
o$frame_offset += 4;
o$parsedFrame['indexpoints'] = getid3_lib::BigEndian2Int(substr($parsedFrame['data'], $frame_offset, 2));
o$frame_offset += 2;
o$parsedFrame['bitsperpoint'] = ord(substr($parsedFrame['data'], $frame_offset++, 1));
o$frame_bytesperpoint = ceil($parsedFrame['bitsperpoint'] / 8);
ofor ($i = 0; $i < $frame_indexpoints; $i++) {
o$parsedFrame['indexes'][$i] = getid3_lib::BigEndian2Int(substr($parsedFrame['data'], $frame_offset, $frame_bytesperpoint));
o$frame_offset += $frame_bytesperpoint;
o}
ounset($parsedFrame['data']);

Re: Undefined variable $frame_indexpoints (1.9.7)

Posted: Tue Sep 17, 2013 10:37 pm
by James Heinrich
I believe you are correct. Fix added:
https://github.com/JamesHeinrich/getID3 ... 4f0511cecd