1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #include "mp4common.h"
- MP4UdtaAtom::MP4UdtaAtom()
- : MP4Atom("udta")
- {
- ExpectChildAtom("chpl", Optional, OnlyOne);
- ExpectChildAtom("cprt", Optional, Many);
- ExpectChildAtom("hnti", Optional, OnlyOne);
- ExpectChildAtom("meta", Optional, OnlyOne);
- ExpectChildAtom("\251cpy", Optional, OnlyOne);
- ExpectChildAtom("\251des", Optional, OnlyOne);
- ExpectChildAtom("\251nam", Optional, OnlyOne);
- ExpectChildAtom("\251cmt", Optional, OnlyOne);
- ExpectChildAtom("\251prd", Optional, OnlyOne);
-
- }
- void MP4UdtaAtom::Read()
- {
- if (ATOMID(m_pParentAtom->GetType()) == ATOMID("trak")) {
- ExpectChildAtom("hinf", Optional, OnlyOne);
- }
- MP4Atom::Read();
- }
|