]> git.nihav.org Git - nihav.git/blobdiff - nihav-ms/src/codecs/msadpcm.rs
cinepakenc: switch default quantisation mode to median cut
[nihav.git] / nihav-ms / src / codecs / msadpcm.rs
index d47d9224f083e04bdf5be2acb2ad99a8e2d1d279..a69db74acb683d0562a5dcdba7497d88bebaa044 100644 (file)
@@ -3,7 +3,7 @@ use nihav_core::io::byteio::*;
 use std::str::FromStr;
 
 const ADAPT_TABLE: [i32; 16] = [
-    230, 230, 230, 230, 307, 409, 512, 614, 
+    230, 230, 230, 230, 307, 409, 512, 614,
     768, 614, 512, 409, 307, 230, 230, 230
 ];
 const ADAPT_COEFFS: [[i32; 2]; 7] = [
@@ -354,7 +354,7 @@ impl NAEncoder for MSADPCMEncoder {
                 self.samples = Vec::with_capacity(self.block_len * self.channels);
                 self.srate = ainfo.sample_rate;
                 self.flush = false;
-                
+
                 Ok(stream)
             },
         }
@@ -421,7 +421,7 @@ mod test {
         ms_register_all_codecs(&mut dec_reg);
 
         test_decoding("avi", "ms-adpcm", "assets/MS/dance.avi", None, &dmx_reg, &dec_reg,
-                      ExpectedTestResult::MD5([0x9d6619e1, 0x60d83560, 0xfe5c1fb7, 0xad5d130d]));
+                      ExpectedTestResult::MD5([0xf5e3fc84, 0xbcabc11c, 0x33c6874e, 0xe05ecd14]));
     }
     #[cfg(feature="encoder_ms_adpcm")]
     #[test]