blob: 692c5adaa79fda8706d733e186b4157657bc4f1e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
use nihav_core::muxers::*;
#[allow(unused_macros)]
macro_rules! validate {
($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(MuxerError::InvalidData); } };
}
#[cfg(feature="muxer_flv")]
mod flv;
const MUXERS: &[&dyn MuxerCreator] = &[
#[cfg(feature="muxer_flv")]
&flv::FLVMuxerCreator {},
];
pub fn flash_register_all_muxers(rm: &mut RegisteredMuxers) {
for muxer in MUXERS.iter() {
rm.add_muxer(*muxer);
}
}
|