rename Duck IVF format for clarity
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 13 Oct 2022 16:21:33 +0000 (18:21 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 13 Oct 2022 16:21:33 +0000 (18:21 +0200)
nihav-duck/src/codecs/vp8.rs
nihav-duck/src/demuxers/ivf.rs
nihav-registry/src/detect.rs

index cc2b175c0c73ed3388d8f34c9e8071d6f0ca8d16..791788afd4863506adb17d4a42f44771eed97ce1 100644 (file)
@@ -1551,7 +1551,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         duck_register_all_decoders(&mut dec_reg);
 
-        test_decoding("ivf", "vp8", name, None, &dmx_reg,
+        test_decoding("dkivf", "vp8", name, None, &dmx_reg,
                       &dec_reg, ExpectedTestResult::MD5(hash));
     }
 
index ba4bb91930431add541497790fe6bce23683ca11..09f725719ecbf5eb97c9ec0b5114dbc0a303f3eb 100644 (file)
@@ -87,7 +87,7 @@ impl DemuxerCreator for IVFDemuxerCreator {
     fn new_demuxer<'a>(&self, br: &'a mut ByteReader<'a>) -> Box<dyn DemuxCore<'a> + 'a> {
         Box::new(IVFDemuxer::new(br))
     }
-    fn get_name(&self) -> &'static str { "ivf" }
+    fn get_name(&self) -> &'static str { "dkivf" }
 }
 
 #[cfg(test)]
index f2731217f526bbfd7296cf535a72480f0ce071fd..67fba7023b57cc543d71d2ae2d9971ab5748ec97 100644 (file)
@@ -242,7 +242,7 @@ const DETECTORS: &[DetectConditions] = &[
                       CheckItem{offs: 3, cond: &CC::Le(Arg::Byte(1)) }],
     },
     DetectConditions {
-        demux_name: "ivf",
+        demux_name: "dkivf",
         extensions: ".ivf",
         conditions: &[CheckItem{offs: 0, cond: &CC::Str(b"DKIF\x00\x00")},
                       CheckItem{offs: 6, cond: &CC::Ge(Arg::U16LE(32))}],