mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
16 lines
No EOL
421 B
JavaScript
16 lines
No EOL
421 B
JavaScript
// Detect It Easy: detection rule file
|
|
// Author: A.S.L - <asl@onet.eu> 2019
|
|
|
|
// https://en.wikipedia.org/wiki/MP4_file_format
|
|
meta("format", "MP4 Video");
|
|
|
|
function detect() {
|
|
if (Binary.getSize() > 100) {
|
|
if (Binary.compare("000000..'ftyp'")) {
|
|
sOptions = Binary.getString(16); // example : isomiso2avc1mp41 / isomavc1 / isom
|
|
bDetected = true;
|
|
}
|
|
}
|
|
|
|
return result();
|
|
} |