aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2019-12-14 10:44:47 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2019-12-14 10:44:47 +0100
commit96eff47e92036a7453c5eb08a1d01baceffb98e4 (patch)
tree8506b966a30ea0e4630b1a8197401c5a536010cc /nihav-core/src
parent122c047f8d6fa0411f8c7de5a5c7cff6219d6cb9 (diff)
downloadnihav-96eff47e92036a7453c5eb08a1d01baceffb98e4.tar.gz
core/test: print generated hash in the expected format
Diffstat (limited to 'nihav-core/src')
-rw-r--r--nihav-core/src/test/dec_video.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/nihav-core/src/test/dec_video.rs b/nihav-core/src/test/dec_video.rs
index 9ccefd5..7db25b8 100644
--- a/nihav-core/src/test/dec_video.rs
+++ b/nihav-core/src/test/dec_video.rs
@@ -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]);
},
};
}