/// Returns codec description for the provided codec short name if it is found.
pub fn get_codec_description(name: &str) -> Option<&'static CodecDescription> {
- for reg in CODEC_REGISTER {
- if reg.name == name {
- return Some(reg);
- }
- }
- None
+ CODEC_REGISTER.iter().find(|®| reg.name == name)
}
static CODEC_REGISTER: &[CodecDescription] = &[
desc!(video; "gdv-video", "Gremlin Digital Video - video"),
desc!(audio; "gdv-audio", "Gremlin Digital Video - audio"),
+ desc!(video-im; "arxel-video", "Arxel Tribe Video"),
desc!(video; "beam-fcp", "Beam Software Animation"),
desc!(video; "beam-video", "Beam Software Video"),
desc!(video; "bmv-video", "BMV video"),