1 use nihav_core::demuxers::*;
4 #[allow(unused_macros)]
5 macro_rules! validate {
6 ($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DemuxerError::InvalidData); } };
9 #[cfg(feature="demuxer_flv")]
12 const DEMUXERS: &[&dyn DemuxerCreator] = &[
13 #[cfg(feature="demuxer_flv")]
14 &flv::FLVDemuxerCreator {},
17 /// Registers all available demuxers provided by this crate.
18 pub fn flash_register_all_demuxers(rd: &mut RegisteredDemuxers) {
19 for demuxer in DEMUXERS.iter() {
20 rd.add_demuxer(*demuxer);