]> git.nihav.org Git - nihav.git/blob - nihav-flash/src/demuxers/mod.rs
flacenc: fix clippy warnings
[nihav.git] / nihav-flash / src / demuxers / mod.rs
1 use nihav_core::demuxers::*;
2
3
4 #[allow(unused_macros)]
5 macro_rules! validate {
6 ($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DemuxerError::InvalidData); } };
7 }
8
9 #[cfg(feature="demuxer_flv")]
10 mod flv;
11
12 const DEMUXERS: &[&dyn DemuxerCreator] = &[
13 #[cfg(feature="demuxer_flv")]
14 &flv::FLVDemuxerCreator {},
15 ];
16
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);
21 }
22 }