split remaining decoders and demuxer from core
[nihav.git] / nihav-commonfmt / src / demuxers / mod.rs
CommitLineData
38953fb5
KS
1use nihav_core::demuxers::*;
2
3
4macro_rules! validate {
5 ($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DemuxerError::InvalidData); } };
6}
7
8#[cfg(feature="demuxer_avi")]
9mod avi;
10
11const DEMUXERS: &[&'static DemuxerCreator] = &[
12#[cfg(feature="demuxer_avi")]
13 &avi::AVIDemuxerCreator {},
14];
15
16pub fn generic_register_all_demuxers(rd: &mut RegisteredDemuxers) {
17 for demuxer in DEMUXERS.into_iter() {
18 rd.add_demuxer(*demuxer);
19 }
20}