libmpegts 0.3.2

MPEG-TS Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use libmpegts::utils::{
    MjdFrom,
    MjdTo,
};

#[test]
fn test_from_mjd() {
    assert_eq!(u64::from_mjd([0xc0, 0x79]), 750470400);
}

#[test]
fn test_into_mjd() {
    assert_eq!(750470400u64.into_mjd(), [0xc0, 0x79]);
}