1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2024-05-19 16:58:04 +00:00

Merge branch 'master' into fix/avc1-pasp

This commit is contained in:
Alfred Gutierrez 2023-06-18 20:47:48 -07:00 committed by GitHub
commit 8553c71f51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -657,20 +657,15 @@ pub fn creation_time(creation_time: u64) -> u64 {
}
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
#[derive(Debug, Default, Clone, PartialEq, Eq, Serialize)]
pub enum DataType {
#[default]
Binary = 0x000000,
Text = 0x000001,
Image = 0x00000D,
TempoCpil = 0x000015,
}
impl std::default::Default for DataType {
fn default() -> Self {
DataType::Binary
}
}
impl TryFrom<u32> for DataType {
type Error = Error;
fn try_from(value: u32) -> Result<DataType> {