22 $ThisFileInfo[
'error'][] =
'Bink / Smacker files not properly processed by this version of getID3()';
24 fseek($fd, $ThisFileInfo[
'avdataoffset'], SEEK_SET);
25 $fileTypeID = fread($fd, 3);
26 switch ($fileTypeID) {
28 return $this->
ParseBink($fd, $ThisFileInfo);
36 $ThisFileInfo[
'error'][] =
'Expecting "BIK" or "SMK" at offset '.$ThisFileInfo[
'avdataoffset'].
', found "'.$fileTypeID.
'"';
46 $ThisFileInfo[
'fileformat'] =
'bink';
47 $ThisFileInfo[
'video'][
'dataformat'] =
'bink';
49 $fileData =
'BIK'.fread($fd, 13);
54 if (($ThisFileInfo[
'avdataend'] - $ThisFileInfo[
'avdataoffset']) != ($ThisFileInfo[
'bink'][
'data_size'] + 8)) {
55 $ThisFileInfo[
'error'][] =
'Probably truncated file: expecting '.$ThisFileInfo[
'bink'][
'data_size'].
' bytes, found '.($ThisFileInfo[
'avdataend'] - $ThisFileInfo[
'avdataoffset']);
62 $ThisFileInfo[
'fileformat'] =
'smacker';
63 $ThisFileInfo[
'video'][
'dataformat'] =
'smacker';