diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2019-04-02 11:59:58 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2019-04-02 11:59:58 +0200 |
commit | ecda1cc1266117b3bb8669b06185d2e15a265ebe (patch) | |
tree | e7af09d092984149f4d7d694b826233f231fb5f4 /nihav-core/src | |
parent | 9e9e49d110c5fb5ec71be9b25a4a00d88af70c84 (diff) | |
download | nihav-ecda1cc1266117b3bb8669b06185d2e15a265ebe.tar.gz |
game: add Discworld Noir BMV demuxer and audio decoder
Diffstat (limited to 'nihav-core/src')
-rw-r--r-- | nihav-core/src/detect.rs | 6 | ||||
-rw-r--r-- | nihav-core/src/register.rs | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/nihav-core/src/detect.rs b/nihav-core/src/detect.rs index 17b1411..caf5900 100644 --- a/nihav-core/src/detect.rs +++ b/nihav-core/src/detect.rs @@ -212,6 +212,12 @@ const DETECTORS: &[DetectConditions] = &[ conditions: &[], }, DetectConditions { + demux_name: "bmv3", + extensions: ".bmv", + conditions: &[CheckItem{offs: 0, cond: &CC::Str(b"BMVi") }, + CheckItem{offs: 32, cond: &CC::Str(b"DATA")}], + }, + DetectConditions { demux_name: "vmd", extensions: ".vmd", conditions: &[], diff --git a/nihav-core/src/register.rs b/nihav-core/src/register.rs index 56d2cfc..a03d7ca 100644 --- a/nihav-core/src/register.rs +++ b/nihav-core/src/register.rs @@ -165,6 +165,8 @@ static CODEC_REGISTER: &'static [CodecDescription] = &[ desc!(audio; "gdv-audio", "Gremlin Digital Video - audio"), desc!(video; "bmv-video", "BMV video"), desc!(audio; "bmv-audio", "BMV audio"), + desc!(video; "bmv3-video", "DW Noir BMV video"), + desc!(audio; "bmv3-audio", "DW Noir BMV audio"), desc!(video; "vmd-video", "VMD video"), desc!(audio; "vmd-audio", "VMD audio"), |