// Detect It Easy: detection rule file
// Author: hypn0 <hypn0@mail.ru>

meta("format");

function detect() {
    if (Binary.compare("'RIFF'........'CDR'")) {
        sName = "CorelDraw graphics (.CDR)";
        bDetected = true;
    } else if (Binary.compare("'RIFF'........'AVI '")) {
        sName = "AVI";
        bDetected = true;
    } else if (Binary.compare("'RIFF'........'WEBPVP8'")) {
        sName = "WebP";
        bDetected = true;
    }

    return result();
}