add WAV demuxer
[nihav.git] / nihav-registry / src / detect.rs
index 7d0633a7630d4f2ee4db12ef34cd955539b3dc10..2621000eb889edbd45e536f7b5613175bf313269 100644 (file)
@@ -198,6 +198,13 @@ const DETECTORS: &[DetectConditions] = &[
                                                                &CC::Str(b"ON2fLIST")) },
                      ]
     },
+    DetectConditions {
+        demux_name: "wav",
+        extensions: ".wav",
+        conditions: &[CheckItem{offs: 0, cond: &CC::Str(b"RIFF") },
+                      CheckItem{offs: 8, cond: &CC::Str(b"WAVEfmt ") }
+                     ]
+    },
     DetectConditions {
         demux_name: "mov",
         extensions: ".mov",