|
@@ 1375-1377 (lines=3) @@
|
| 1372 |
|
|
| 1373 |
|
// the rest is all hardcoded(?) and does not appear to be useful until you get to audio info at offset 256, even then everything is probably hardcoded |
| 1374 |
|
|
| 1375 |
|
if (substr($AMVheader, 68, 20) != 'LIST'."\x00\x00\x00\x00".'strlstrh'."\x38\x00\x00\x00") { |
| 1376 |
|
throw new Exception('expecting "LIST<0x00000000>strlstrh<0x38000000>" at offset '.($startoffset + 68).', found "'.getid3_lib::PrintHexBytes(substr($AMVheader, 68, 20)).'"'); |
| 1377 |
|
} |
| 1378 |
|
// followed by 56 bytes of null: substr($AMVheader, 88, 56) -> 144 |
| 1379 |
|
if (substr($AMVheader, 144, 8) != 'strf'."\x24\x00\x00\x00") { |
| 1380 |
|
throw new Exception('expecting "strf<0x24000000>" at offset '.($startoffset + 144).', found "'.getid3_lib::PrintHexBytes(substr($AMVheader, 144, 8)).'"'); |
|
@@ 1384-1386 (lines=3) @@
|
| 1381 |
|
} |
| 1382 |
|
// followed by 36 bytes of null: substr($AMVheader, 144, 36) -> 180 |
| 1383 |
|
|
| 1384 |
|
if (substr($AMVheader, 188, 20) != 'LIST'."\x00\x00\x00\x00".'strlstrh'."\x30\x00\x00\x00") { |
| 1385 |
|
throw new Exception('expecting "LIST<0x00000000>strlstrh<0x30000000>" at offset '.($startoffset + 188).', found "'.getid3_lib::PrintHexBytes(substr($AMVheader, 188, 20)).'"'); |
| 1386 |
|
} |
| 1387 |
|
// followed by 48 bytes of null: substr($AMVheader, 208, 48) -> 256 |
| 1388 |
|
if (substr($AMVheader, 256, 8) != 'strf'."\x14\x00\x00\x00") { |
| 1389 |
|
throw new Exception('expecting "strf<0x14000000>" at offset '.($startoffset + 256).', found "'.getid3_lib::PrintHexBytes(substr($AMVheader, 256, 8)).'"'); |