X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-duck%2Fsrc%2Fcodecs%2Ftruemotion2x.rs;h=2e3182971a47a3ace4d4e68c260288da9df922fc;hb=HEAD;hp=7f4ac524062903d4129f13ea9405faeaeb66437c;hpb=78fb6560c73965d834b215fb0b49505ae5443288;p=nihav.git diff --git a/nihav-duck/src/codecs/truemotion2x.rs b/nihav-duck/src/codecs/truemotion2x.rs index 7f4ac52..2e31829 100644 --- a/nihav-duck/src/codecs/truemotion2x.rs +++ b/nihav-duck/src/codecs/truemotion2x.rs @@ -277,7 +277,7 @@ impl TM2XDecoder { #[allow(clippy::int_plus_one)] #[allow(clippy::manual_memcpy)] - #[allow(clippy::cyclomatic_complexity)] + #[allow(clippy::cognitive_complexity)] fn decode_frame(&mut self, src: &[u8]) -> DecoderResult<()> { let mut mr = MemoryReader::new_read(src); let mut br = ByteReader::new(&mut mr); @@ -719,6 +719,7 @@ mod test { let mut dec_reg = RegisteredDecoders::new(); duck_register_all_decoders(&mut dec_reg); + // sample: https://samples.mplayerhq.hu/V-codecs/TM2x.avi test_decoding("avi", "truemotion2x", "assets/Duck/TM2x.avi", None, &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![ [0x2854e7f3, 0x41e54fd3, 0xd9a16302, 0x580321b2],