aac: clear M/S flags
[nihav.git] / nihav-mpeg / src / codecs / mod.rs
index d02d7d8144327f59836a6f404308742b29f761ba..f6fb31cd6301e48f3331cffb41a59362fae4a1ab 100644 (file)
@@ -1,10 +1,17 @@
 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(feature="decoder_aac")]
+#[allow(clippy::comparison_chain)]
+#[allow(clippy::excessive_precision)]
 #[allow(clippy::manual_memcpy)]
 #[allow(clippy::useless_let_if_seq)]
 mod aac;