]> git.nihav.org Git - nihav.git/blobdiff - nihav-rad/src/codecs/mod.rs
binkvid: move data tables into separate module
[nihav.git] / nihav-rad / src / codecs / mod.rs
index 6680c0f2712044b0ed0adc85b88e8c82143706f9..977324c1f47e2009ad3d10bb518595f80862b406 100644 (file)
@@ -1,8 +1,13 @@
 use nihav_core::codecs::*;
 
+#[cfg(debug_assertions)]
 macro_rules! validate {
     ($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DecoderError::InvalidData); } };
 }
+#[cfg(not(debug_assertions))]
+macro_rules! validate {
+    ($a:expr) => { if !$a { return Err(DecoderError::InvalidData); } };
+}
 
 #[cfg(any(feature="decoder_smkaud", feature="decoder_smkvid"))]
 mod smacker;
@@ -10,6 +15,8 @@ mod smacker;
 mod binkaud;
 #[cfg(feature="decoder_binkvid")]
 mod binkvid;
+#[cfg(feature="decoder_binkvid")]
+mod binkviddata;
 #[cfg(feature="decoder_bink2")]
 mod bink2;