aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src/detect.rs
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2019-01-24 15:36:04 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2019-01-24 15:36:04 +0100
commitc6c21059c1782d1be3bce200862e96bf97c960bd (patch)
treeb8d8b4c39c1da0f0005efd4cc82887d8083ee881 /nihav-core/src/detect.rs
parentdb63f876c1a23ab4b52629a485aab520101a6345 (diff)
downloadnihav-c6c21059c1782d1be3bce200862e96bf97c960bd.tar.gz
Bink demuxer
Diffstat (limited to 'nihav-core/src/detect.rs')
-rw-r--r--nihav-core/src/detect.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/nihav-core/src/detect.rs b/nihav-core/src/detect.rs
index b2d4295..8308ba8 100644
--- a/nihav-core/src/detect.rs
+++ b/nihav-core/src/detect.rs
@@ -194,6 +194,14 @@ const DETECTORS: &[DetectConditions] = &[
conditions: &[CheckItem{offs: 0, cond: &CC::Or(&CC::Str(b".R1M"), &CC::Str(b".REC"))}],
},
DetectConditions {
+ demux_name: "bink",
+ extensions: ".bik,.kb2",
+ conditions: &[CheckItem{offs: 0, cond: &CC::Or(&CC::In(Arg::U32BE(0x32494B62), // BIKb
+ Arg::U32BE(0x32494B7B)), // BIKz
+ &CC::In(Arg::U32BE(0x4B423261), // KB2a
+ Arg::U32BE(0x4B42327B)))}], // KB2z
+ },
+ DetectConditions {
demux_name: "smacker",
extensions: ".smk",
conditions: &[CheckItem{offs: 0, cond: &CC::Or(&CC::Str(b"SMK2"), &CC::Str(b"SMK4"))}],