From b8e71e0a090fb00f3b3e97279dd9f65590238f5c Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 13 Oct 2022 18:21:33 +0200 Subject: [PATCH] rename Duck IVF format for clarity --- nihav-duck/src/codecs/vp8.rs | 2 +- nihav-duck/src/demuxers/ivf.rs | 2 +- nihav-registry/src/detect.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nihav-duck/src/codecs/vp8.rs b/nihav-duck/src/codecs/vp8.rs index cc2b175..791788a 100644 --- a/nihav-duck/src/codecs/vp8.rs +++ b/nihav-duck/src/codecs/vp8.rs @@ -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)); } diff --git a/nihav-duck/src/demuxers/ivf.rs b/nihav-duck/src/demuxers/ivf.rs index ba4bb91..09f7257 100644 --- a/nihav-duck/src/demuxers/ivf.rs +++ b/nihav-duck/src/demuxers/ivf.rs @@ -87,7 +87,7 @@ impl DemuxerCreator for IVFDemuxerCreator { fn new_demuxer<'a>(&self, br: &'a mut ByteReader<'a>) -> Box + 'a> { Box::new(IVFDemuxer::new(br)) } - fn get_name(&self) -> &'static str { "ivf" } + fn get_name(&self) -> &'static str { "dkivf" } } #[cfg(test)] diff --git a/nihav-registry/src/detect.rs b/nihav-registry/src/detect.rs index f273121..67fba70 100644 --- a/nihav-registry/src/detect.rs +++ b/nihav-registry/src/detect.rs @@ -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))}], -- 2.39.5