cinepakenc: switch to MD5-based test
[nihav.git] / nihav-commonfmt / src / codecs / cinepakenc.rs
index a7cf8c0fca39f73794968833f6642080688bad45..f10499706e70678c0bfd3f8454e331c399e1652f 100644 (file)
@@ -944,7 +944,7 @@ impl NAEncoder for CinepakEncoder {
 
                 let out_info = NAVideoInfo::new(vinfo.width, vinfo.height, false, vinfo.format);
                 let info = NACodecInfo::new("cinepak", NACodecTypeInfo::Video(out_info), None);
-                let mut stream = NAStream::new(StreamType::Video, stream_id, info, encinfo.tb_num, encinfo.tb_den);
+                let mut stream = NAStream::new(StreamType::Video, stream_id, info, encinfo.tb_num, encinfo.tb_den, 0);
                 stream.set_num(stream_id as usize);
                 let stream = stream.into_ref();
 
@@ -1103,6 +1103,8 @@ mod test {
                 tb_den:  0,
                 flags:   0,
             };
-        test_encoding_to_file(&dec_config, &enc_config, enc_params);
+        //test_encoding_to_file(&dec_config, &enc_config, enc_params);
+        test_encoding_md5(&dec_config, &enc_config, enc_params,
+                          &[0x1a71b529, 0x9453fe1a, 0xab2be3f5, 0x55623bab]);
     }
 }