CodeExplorer ParseRIFFAMV example
switch ($nextRIFFheaderID) { case 'RIFF':
$chunkdata['chunks'
] =
$this->
ParseRIFF($chunkdata['offset'
] + 4,
$nextRIFFoffset);
if (!
isset($thisfile_riff[$nextRIFFtype])) { $thisfile_riff[$nextRIFFtype] = array
();
} $thisfile_riff[$nextRIFFtype][] =
$chunkdata;
break;
case 'AMV ':
unset($info['riff'
]);
$info['amv'
] =
$this->
ParseRIFFAMV($chunkdata['offset'
] + 4,
$nextRIFFoffset);
break;
case 'JUNK':
// ignore
$thisfile_riff[$nextRIFFheaderID][] =
$chunkdata;
break;
case 'IDVX':
$info['divxtag'
]['comments'
] = self::
ParseDIVXTAG($this->
fread($chunkdata['size'
]));
break;