|
@@ 320-325 (lines=6) @@
|
| 317 |
|
$boxsmallsize = getid3_lib::BigEndian2Int(substr($atom_data, $atomoffset, 2)); |
| 318 |
|
$boxsmalltype = substr($atom_data, $atomoffset + 2, 2); |
| 319 |
|
$boxsmalldata = substr($atom_data, $atomoffset + 4, $boxsmallsize); |
| 320 |
|
if ($boxsmallsize <= 1) { |
| 321 |
|
$info['warning'][] = 'Invalid QuickTime atom smallbox size "'.$boxsmallsize.'" in atom "'.preg_replace('#[^a-zA-Z0-9 _\\-]#', '?', $atomname).'" at offset: '.($atom_structure['offset'] + $atomoffset); |
| 322 |
|
$atom_structure['data'] = null; |
| 323 |
|
$atomoffset = strlen($atom_data); |
| 324 |
|
break; |
| 325 |
|
} |
| 326 |
|
switch ($boxsmalltype) { |
| 327 |
|
case "\x10\xB5": |
| 328 |
|
$atom_structure['data'] = $boxsmalldata; |
|
@@ 342-347 (lines=6) @@
|
| 339 |
|
$boxsize = getid3_lib::BigEndian2Int(substr($atom_data, $atomoffset, 4)); |
| 340 |
|
$boxtype = substr($atom_data, $atomoffset + 4, 4); |
| 341 |
|
$boxdata = substr($atom_data, $atomoffset + 8, $boxsize - 8); |
| 342 |
|
if ($boxsize <= 1) { |
| 343 |
|
$info['warning'][] = 'Invalid QuickTime atom box size "'.$boxsize.'" in atom "'.preg_replace('#[^a-zA-Z0-9 _\\-]#', '?', $atomname).'" at offset: '.($atom_structure['offset'] + $atomoffset); |
| 344 |
|
$atom_structure['data'] = null; |
| 345 |
|
$atomoffset = strlen($atom_data); |
| 346 |
|
break; |
| 347 |
|
} |
| 348 |
|
$atomoffset += $boxsize; |
| 349 |
|
|
| 350 |
|
switch ($boxtype) { |