mirror of
https://github.com/alfg/mp4-rust.git
synced 2025-02-22 07:56:16 +00:00
Merge branch 'master' into fix/avc1-pasp
This commit is contained in:
commit
8553c71f51
1 changed files with 2 additions and 7 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue