mirror of
https://github.com/alfg/mp4-rust.git
synced 2025-01-05 01:48:40 +00:00
Skip serializing vmhd/smhd if Option::is_none.
This commit is contained in:
parent
0f373b03db
commit
dd2eae6eed
1 changed files with 4 additions and 0 deletions
|
@ -6,8 +6,12 @@ use crate::mp4box::{smhd::SmhdBox, stbl::StblBox, vmhd::VmhdBox};
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Default, Serialize)]
|
#[derive(Debug, Clone, PartialEq, Default, Serialize)]
|
||||||
pub struct MinfBox {
|
pub struct MinfBox {
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub vmhd: Option<VmhdBox>,
|
pub vmhd: Option<VmhdBox>,
|
||||||
|
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub smhd: Option<SmhdBox>,
|
pub smhd: Option<SmhdBox>,
|
||||||
|
|
||||||
pub stbl: StblBox,
|
pub stbl: StblBox,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue