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:
parent
08ee6a71f0
commit
cfb5d5f98b
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue