]> git.nihav.org Git - nihav.git/commitdiff
core/test: print generated hash in the expected format
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 14 Dec 2019 09:44:47 +0000 (10:44 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 14 Dec 2019 09:44:47 +0000 (10:44 +0100)
nihav-core/src/test/dec_video.rs

index 9ccefd58ed82f71fc778ada9d17bf238ce415e50..7db25b874149ccbb219b94a66562c0d4873d0fed 100644 (file)
@@ -430,7 +430,9 @@ println!("frame pts {:?} hash {}", pkt.get_pts(), md5);
                     md5 = MD5::new();
                     frame_checksum(&mut md5, frm);
                     md5.finish();
-println!("frame pts {:?} hash {}", pkt.get_pts(), md5);
+                    let mut hash = [0u32; 4];
+                    md5.get_hash(&mut hash);
+println!("frame pts {:?} hash [0x{:08x}, 0x{:08x}, 0x{:08x}, 0x{:08x}],", pkt.get_pts(), hash[0], hash[1], hash[2], hash[3]);
                 },
             };
         }