aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2019-01-23 14:04:05 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2019-01-23 14:04:05 +0100
commit606c448ef167017c3171b49f9eb2af82c15079ce (patch)
tree7012c94da0d57aa8414118a00d5702ec22ec9c49 /nihav-core/src
parent9067c1f81447fe27bfa7e292e2dd21b29f5959cd (diff)
downloadnihav-606c448ef167017c3171b49f9eb2af82c15079ce.tar.gz
RAD formats crate and Smacker demuxer and decoder
Diffstat (limited to 'nihav-core/src')
-rw-r--r--nihav-core/src/detect.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/nihav-core/src/detect.rs b/nihav-core/src/detect.rs
index 0b60641..b2b3414 100644
--- a/nihav-core/src/detect.rs
+++ b/nihav-core/src/detect.rs
@@ -193,6 +193,11 @@ const DETECTORS: &[DetectConditions] = &[
extensions: ".ivr",
conditions: &[CheckItem{offs: 0, cond: &CC::Or(&CC::Str(b".R1M"), &CC::Str(b".REC"))}],
},
+ DetectConditions {
+ demux_name: "smacker",
+ extensions: ".smk",
+ conditions: &[CheckItem{offs: 0, cond: &CC::Or(&CC::Str(b"SMK2"), &CC::Str(b"SMK4"))}],
+ },
];
pub fn detect_format(name: &str, src: &mut ByteReader) -> Option<(&'static str, DetectionScore)> {