blob: edb87e39475cfbde958cf9aff3766f17b1bcf092 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
use nihav_core::muxers::*;
#[allow(unused_macros)]
#[cfg(debug_assertions)]
macro_rules! validate {
($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(MuxerError::InvalidData); } };
}
#[cfg(not(debug_assertions))]
macro_rules! validate {
($a:expr) => { if !$a { 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);
}
}
|