]> git.nihav.org Git - nihav.git/blobdiff - nihav-game/src/demuxers/vmd.rs
core/frame: fix NATimePoint parsing from string
[nihav.git] / nihav-game / src / demuxers / vmd.rs
index 70bf0fe15a69aa6400c54e75f60127b44239b1f9..3c6e1526cc365bdac8d19ca27969be44149b0d1e 100644 (file)
@@ -160,7 +160,7 @@ impl<'a> DemuxCore<'a> for VMDDemuxer<'a> {
 
         let is_video = cur_frame.chtype == CHTYPE_VIDEO;
         let mut buf: Vec<u8> = Vec::with_capacity(FRAME_HDR_SIZE + (cur_frame.size as usize));
-        if !(is_video && self.is_indeo) && !(!is_video && self.is_lhaud) {
+        if !((is_video && self.is_indeo) || (!is_video && self.is_lhaud)) {
             buf.extend_from_slice(&cur_frame.hdr);
             buf.resize(FRAME_HDR_SIZE + (cur_frame.size as usize), 0);
             self.src.read_buf(&mut buf[FRAME_HDR_SIZE..])?;
@@ -185,6 +185,12 @@ impl<'a> DemuxCore<'a> for VMDDemuxer<'a> {
     }
 }
 
+impl<'a> NAOptionHandler for VMDDemuxer<'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> VMDDemuxer<'a> {
     fn new(io: &'a mut ByteReader<'a>) -> Self {
         Self {