X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-qt%2Fsrc%2Fcodecs%2Frpza.rs;h=7eb1d8bc61e8dd41590dc56818297336ea151047;hb=e6aaad5c5273cd814b5748b7faf3751835a37217;hp=b20cb91e714fe3a7ab90ebfc2bb009132cd5ea02;hpb=886cde4847280b96e10d240c2f2d76abec121dc8;p=nihav.git diff --git a/nihav-qt/src/codecs/rpza.rs b/nihav-qt/src/codecs/rpza.rs index b20cb91..7eb1d8b 100644 --- a/nihav-qt/src/codecs/rpza.rs +++ b/nihav-qt/src/codecs/rpza.rs @@ -25,7 +25,7 @@ impl RpzaDecoder { } fn put_block(dst: &mut [u16], dstride: usize, block: &[u16; 16]) { for (line, src) in dst.chunks_mut(dstride).take(4).zip(block.chunks(4)) { - (&mut line[..4]).copy_from_slice(src); + line[..4].copy_from_slice(src); } } } @@ -205,7 +205,7 @@ mod test { qt_register_all_decoders(&mut dec_reg); // sample: https://samples.mplayerhq.hu/V-codecs/RPZA/aletrek-rpza.mov - test_decoding("mov", "apple-video", "assets/QT/aletrek-rpza.mov", Some(6), &dmx_reg &dec_reg, + test_decoding("mov", "apple-video", "assets/QT/aletrek-rpza.mov", Some(6), &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![ [0xe7cfc941, 0xa448841b, 0x75afc888, 0x94aa064b], [0xadaaec50, 0xff7319ff, 0xa1f3f64a, 0xc40c2985],