X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-duck%2Fsrc%2Fcodecs%2Fmod.rs;h=ba52f5d9ef4804a8e952702c6f3a206706ace5da;hb=fafc32ef4ac761d2219881a6ab750ce913aa318a;hp=271dc5728a1aa66a287faca67f1378565aef8c12;hpb=7f839ae7ac1eef6718bf508648ef9f287cc793bd;p=nihav.git diff --git a/nihav-duck/src/codecs/mod.rs b/nihav-duck/src/codecs/mod.rs index 271dc57..ba52f5d 100644 --- a/nihav-duck/src/codecs/mod.rs +++ b/nihav-duck/src/codecs/mod.rs @@ -1,11 +1,18 @@ 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_truemotion1")] mod truemotion1; +#[cfg(feature="decoder_truemotion1")] +mod truemotion1data; #[cfg(feature="decoder_truemotionrt")] mod truemotionrt; #[cfg(feature="decoder_truemotion2")]