@@ 866-873 (lines=8) @@ | ||
863 | $atom_structure['flags_raw'] = getid3_lib::BigEndian2Int(substr($atom_data, 1, 3)); // hardcoded: 0x0000 |
|
864 | $atom_structure['number_entries'] = getid3_lib::BigEndian2Int(substr($atom_data, 4, 4)); |
|
865 | $stscEntriesDataOffset = 8; |
|
866 | for ($i = 0; $i < $atom_structure['number_entries']; $i++) { |
|
867 | $atom_structure['sample_to_chunk_table'][$i]['first_chunk'] = getid3_lib::BigEndian2Int(substr($atom_data, $stscEntriesDataOffset, 4)); |
|
868 | $stscEntriesDataOffset += 4; |
|
869 | $atom_structure['sample_to_chunk_table'][$i]['samples_per_chunk'] = getid3_lib::BigEndian2Int(substr($atom_data, $stscEntriesDataOffset, 4)); |
|
870 | $stscEntriesDataOffset += 4; |
|
871 | $atom_structure['sample_to_chunk_table'][$i]['sample_description'] = getid3_lib::BigEndian2Int(substr($atom_data, $stscEntriesDataOffset, 4)); |
|
872 | $stscEntriesDataOffset += 4; |
|
873 | } |
|
874 | } |
|
875 | break; |
|
876 |
@@ 333-342 (lines=10) @@ | ||
330 | $info['flac']['CUESHEET']['tracks'][$TrackNumber]['index_points'] = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 1)); |
|
331 | $offset += 1; |
|
332 | ||
333 | for ($index = 0; $index < $info['flac']['CUESHEET']['tracks'][$TrackNumber]['index_points']; $index++) { |
|
334 | $IndexSampleOffset = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 8)); |
|
335 | $offset += 8; |
|
336 | $IndexNumber = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 1)); |
|
337 | $offset += 1; |
|
338 | ||
339 | $offset += 3; // reserved |
|
340 | ||
341 | $info['flac']['CUESHEET']['tracks'][$TrackNumber]['indexes'][$IndexNumber] = $IndexSampleOffset; |
|
342 | } |
|
343 | } |
|
344 | ||
345 | return true; |