1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2024-06-02 13:39:54 +00:00

Fix test failure

This commit is contained in:
Ian Jun 2020-08-06 12:03:39 +09:00
parent 08ee6a71f0
commit cfb5d5f98b

View file

@ -1,6 +1,7 @@
use mp4::{AudioObjectType, AvcProfile, ChannelConfig, MediaType, SampleFreqIndex, TrackType};
use std::fs::File;
use std::io::BufReader;
use std::time::Duration;
#[test]
fn test_read_mp4() {
@ -29,7 +30,7 @@ fn test_read_mp4() {
assert_eq!(t, true);
}
assert_eq!(mp4.duration(), 62);
assert_eq!(mp4.duration(), Duration::from_millis(62));
assert_eq!(mp4.timescale(), 1000);
assert_eq!(mp4.tracks().len(), 2);