]> git.nihav.org Git - nihav.git/blobdiff - nihav-commonfmt/src/demuxers/mod.rs
avi: fix handling of multiple palette changes in single 'pc' chunk
[nihav.git] / nihav-commonfmt / src / demuxers / mod.rs
index d850e05da1bede7e307aa55ffcf04bbb6c4ba7ff..42d1f11cfc0fe50ab14103e0aa27bffbd048eec6 100644 (file)
@@ -2,13 +2,20 @@ 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_avi")]
 #[allow(clippy::cast_lossless)]
 mod avi;
+#[cfg(feature="demuxer_gif")]
+mod gif;
 #[cfg(feature="demuxer_mov")]
 #[allow(clippy::cast_lossless)]
 mod mov;
@@ -20,6 +27,8 @@ mod y4m;
 const DEMUXERS: &[&dyn DemuxerCreator] = &[
 #[cfg(feature="demuxer_avi")]
     &avi::AVIDemuxerCreator {},
+#[cfg(feature="demuxer_gif")]
+    &gif::GIFDemuxerCreator {},
 #[cfg(feature="demuxer_mov")]
     &mov::MOVDemuxerCreator {},
 #[cfg(feature="demuxer_mov")]