X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-indeo%2Fsrc%2Fdemuxers%2Fmod.rs;fp=nihav-indeo%2Fsrc%2Fdemuxers%2Fmod.rs;h=6e25fccac616507ce42bac7f70c7bcb4ffe49baf;hp=db8046a95741d3613d8ad2b52754463a693495d8;hb=71d7f39706f0f5004820f8d1d36c87d5f9ec3e97;hpb=a970b2110488aeff5855743d1728ee83462e8306 diff --git a/nihav-indeo/src/demuxers/mod.rs b/nihav-indeo/src/demuxers/mod.rs index db8046a..6e25fcc 100644 --- a/nihav-indeo/src/demuxers/mod.rs +++ b/nihav-indeo/src/demuxers/mod.rs @@ -2,9 +2,14 @@ use nihav_core::demuxers::*; #[allow(unused_macros)] +#[cfg(debug_assertions)] macro_rules! validate { ($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DemuxerError::InvalidData); } }; } +#[cfg(not(debug_assertions))] +macro_rules! validate { + ($a:expr) => { if !$a { return Err(DemuxerError::InvalidData); } }; +} #[cfg(feature="demuxer_ivf")] mod ivf;