}
}
+impl<'a> NAOptionHandler for VivoDemuxer<'a> {
+ fn get_supported_options(&self) -> &[NAOptionDefinition] { &[] }
+ fn set_options(&mut self, _options: &[NAOption]) { }
+ fn query_option_value(&self, _name: &str) -> Option<NAValue> { None }
+}
+
impl<'a> VivoDemuxer<'a> {
fn new(io: &'a mut ByteReader<'a>) -> Self {
VivoDemuxer {
fn parse_header_packet(&mut self, pkt: &[u8]) -> DemuxerResult<()> {
for entry in pkt.split(|ch| *ch == 0xD) {
if entry.len() < 3 || !entry.contains(&b':') { continue; }
- let entry = if entry.len() > 0 && entry[0] == 0xA { &entry[1..] } else { entry };
+ let entry = if !entry.is_empty() && entry[0] == 0xA { &entry[1..] } else { entry };
let mut split = entry.split(|ch| *ch == b':');
let name = split.next().unwrap();
let value = split.next().unwrap();