]> git.nihav.org Git - nihav.git/blame_incremental - nihav-commonfmt/src/demuxers/mod.rs
realmedia/rv40dsp: fix typos in loop filters
[nihav.git] / nihav-commonfmt / src / demuxers / mod.rs
... / ...
CommitLineData
1use nihav_core::demuxers::*;
2
3
4#[allow(unused_macros)]
5macro_rules! validate {
6 ($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DemuxerError::InvalidData); } };
7}
8
9#[cfg(feature="demuxer_avi")]
10#[allow(clippy::cast_lossless)]
11mod avi;
12
13const DEMUXERS: &[&DemuxerCreator] = &[
14#[cfg(feature="demuxer_avi")]
15 &avi::AVIDemuxerCreator {},
16];
17
18/// Registers all available demuxers provided by this crate.
19pub fn generic_register_all_demuxers(rd: &mut RegisteredDemuxers) {
20 for demuxer in DEMUXERS.iter() {
21 rd.add_demuxer(*demuxer);
22 }
23}